2024-08-08 14:38:43 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
clang,
|
|
|
|
glfw,
|
2024-08-08 15:07:11 +02:00
|
|
|
gnumake,
|
2024-08-08 14:38:43 +02:00
|
|
|
pkg-config,
|
2024-08-08 14:42:06 +02:00
|
|
|
shaderc,
|
2024-10-06 13:29:47 +02:00
|
|
|
stb,
|
2024-08-08 14:38:43 +02:00
|
|
|
vulkan-headers,
|
|
|
|
vulkan-loader,
|
|
|
|
vulkan-validation-layers,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
pname = "ptk";
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
inherit pname;
|
|
|
|
version = "0.1.0";
|
|
|
|
|
2024-08-08 15:07:52 +02:00
|
|
|
src = ./.;
|
2024-08-08 14:38:43 +02:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glfw
|
2024-10-06 13:29:47 +02:00
|
|
|
stb
|
2024-08-08 14:38:43 +02:00
|
|
|
vulkan-headers
|
|
|
|
vulkan-loader
|
|
|
|
vulkan-validation-layers
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2024-08-08 15:07:11 +02:00
|
|
|
gnumake
|
2024-08-08 14:38:43 +02:00
|
|
|
clang
|
|
|
|
pkg-config
|
2024-08-08 14:42:06 +02:00
|
|
|
shaderc
|
2024-08-08 14:38:43 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm755 target/lib${pname}.so -t $out/lib
|
2024-08-13 01:06:41 +02:00
|
|
|
install -Dm755 include/* -t $out/include
|
2024-08-08 14:38:43 +02:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-09-27 08:57:19 +02:00
|
|
|
homepage = "https://git.jacekpoz.pl/poz/${pname}";
|
2024-08-08 14:38:43 +02:00
|
|
|
description = "poz toolkit";
|
|
|
|
license = licenses.eupl12;
|
|
|
|
};
|
|
|
|
}
|