chore(nix): cleanup and update flake
This commit is contained in:
parent
4a674176cd
commit
b1c8da6ac1
2 changed files with 205 additions and 205 deletions
30
flake.nix
30
flake.nix
|
@ -31,11 +31,22 @@
|
|||
(import rust-overlay)
|
||||
];
|
||||
};
|
||||
buildInputs = with pkgs; [
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
vulkan-tools
|
||||
vulkan-tools-lunarg
|
||||
vulkan-loader
|
||||
shaderc
|
||||
cargo-xbuild
|
||||
cargo-pgo
|
||||
cargo-cross
|
||||
cargo-xwin
|
||||
cargo-wizard
|
||||
wine64
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
vulkan-loader
|
||||
libGL
|
||||
wayland
|
||||
libxkbcommon
|
||||
|
@ -44,14 +55,6 @@
|
|||
xorg.libXi
|
||||
xorg.libX11
|
||||
xorg.libxcb
|
||||
pkg-config
|
||||
kdePackages.kdialog
|
||||
cargo-xbuild
|
||||
cargo-pgo
|
||||
cargo-cross
|
||||
cargo-xwin
|
||||
cargo-wizard
|
||||
wine64
|
||||
];
|
||||
in {
|
||||
packages = {
|
||||
|
@ -74,12 +77,9 @@
|
|||
|
||||
})
|
||||
pkg-config
|
||||
];
|
||||
] ++ nativeBuildInputs;
|
||||
buildInputs = buildInputs;
|
||||
shellHook = ''
|
||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${builtins.toString (pkgs.lib.makeLibraryPath buildInputs)}"
|
||||
echo "Rust version: $(rustc --version)"
|
||||
'';
|
||||
LD_LIBRARY_PATH= pkgs.lib.makeLibraryPath buildInputs;
|
||||
};
|
||||
formatter = alejandra.packages.${system}.default;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue