lsfg-vk-flake/default.nix
Nojus f24d8fe371 default.nix: update lsfg-vk to f998647
with the switch to submodules and some other changes we are able to simplify building this project and no longer need patches. thanks @PancakeTAS :3
2025-07-13 19:30:57 +02:00

47 lines
966 B
Nix

{ lib
, fetchFromGitHub
, cmake
, ninja
, vulkan-headers
, vulkan-loader
, llvmPackages
, spirv-headers
}: let
in llvmPackages.stdenv.mkDerivation {
pname = "lsfg-vk";
version = "unstable-2025-07-13-f998647";
src = fetchFromGitHub {
owner = "PancakeTAS";
repo = "lsfg-vk";
rev = "f998647d74051467e39de9de2df2ff9a5996db5f";
hash = "sha256-X708aKFz3wqSVYsMvCKsY7kqi+2LTewnoOMrXFPVEPY=";
fetchSubmodules = true;
};
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
];
nativeBuildInputs = [
# clang-tools needs to come before clang so it can locate Vulkan headers correctly
llvmPackages.clang-tools
llvmPackages.clang
llvmPackages.libllvm # needed for release builds
cmake
ninja
];
buildInputs = [
vulkan-headers
vulkan-loader
spirv-headers
];
meta = with lib; {
homepage = "https://github.com/PancakeTAS/lsfg-vk/";
license = licenses.mit;
platforms = platforms.linux;
};
}