ptk/default.nix

52 lines
757 B
Nix
Raw Permalink Normal View History

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,
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
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
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;
};
}