jacekpoz
97ca8319c3
uses stb to load the image, currently all images have their texture replaced with the texture of the first image gonna try to fix that soon
51 lines
762 B
Nix
51 lines
762 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
clang,
|
|
glfw,
|
|
gnumake,
|
|
pkg-config,
|
|
shaderc,
|
|
stb,
|
|
vulkan-headers,
|
|
vulkan-loader,
|
|
vulkan-validation-layers,
|
|
...
|
|
}: let
|
|
pname = "ptk";
|
|
in stdenv.mkDerivation {
|
|
inherit pname;
|
|
version = "0.1.0";
|
|
|
|
src = ./.;
|
|
|
|
buildInputs = [
|
|
glfw
|
|
stb
|
|
vulkan-headers
|
|
vulkan-loader
|
|
vulkan-validation-layers
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
gnumake
|
|
clang
|
|
pkg-config
|
|
shaderc
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm755 target/lib${pname}.so -t $out/lib
|
|
install -Dm755 include/* -t $out/include
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://git.jacekpoz.pl/jacekpoz/${pname}";
|
|
description = "poz toolkit";
|
|
license = licenses.eupl12;
|
|
};
|
|
}
|