ptk/default.nix

49 lines
742 B
Nix

{
lib,
stdenv,
clang,
glfw,
gnumake,
pkg-config,
shaderc,
vulkan-headers,
vulkan-loader,
vulkan-validation-layers,
...
}: let
pname = "ptk";
in stdenv.mkDerivation {
inherit pname;
version = "0.1.0";
src = ./.;
buildInputs = [
glfw
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;
};
}