Initial commit

This commit is contained in:
Arne Dußin 2024-11-18 22:43:59 +01:00
commit 3ee50f9aff
6 changed files with 158 additions and 0 deletions

31
derivation.nix Normal file
View file

@ -0,0 +1,31 @@
{
lib,
pkgs,
rustPlatform,
name,
}:
(rustPlatform.buildRustPackage {
inherit name;
buildInputs = with pkgs; [
dbus
openssl
];
nativeBuildInputs = with pkgs; [
pkg-config
vulkan-loader
SDL2
SDL2_ttf
];
src = lib.cleanSource ./.;
cargoLock = {
lockFile = ./Cargo.lock;
};
# Make sure the vulkan libraries get patched in properly
postFixup = ''
patchelf --add-rpath ${pkgs.vulkan-loader}/lib $out/bin/*
'';
})