Initial commit
This commit is contained in:
commit
3ee50f9aff
6 changed files with 158 additions and 0 deletions
31
derivation.nix
Normal file
31
derivation.nix
Normal 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/*
|
||||
'';
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue