50 lines
720 B
Nix
50 lines
720 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
cglm,
|
|
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 = [
|
|
cglm
|
|
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
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://git.jacekpoz.pl/jacekpoz/${pname}";
|
|
description = "poz toolkit";
|
|
license = licenses.eupl12;
|
|
};
|
|
}
|