mixdb/derivation.nix

32 lines
443 B
Nix
Raw Permalink Normal View History

2024-11-18 22:43:59 +01:00
{
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/*
'';
})