ptk/default.nix
jacekpoz 114c8a0c5d
images (kinda) working again
the image example shows :3 but it errors a lot and shit
2024-10-06 13:29:47 +02:00

51 lines
757 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/poz/${pname}";
description = "poz toolkit";
license = licenses.eupl12;
};
}