51 lines
757 B
Nix
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;
|
|
};
|
|
}
|