feat(nix): add comprehensive Nix flake for linux-rust

This commit is contained in:
doprz
2025-12-12 18:21:40 -06:00
committed by Kavish Devar
parent 376c54247b
commit 6ded8ff3ff

View File

@@ -39,6 +39,7 @@
libpulseaudio libpulseaudio
alsa-lib alsa-lib
bluez bluez
# https://github.com/max-privatevoid/iced/blob/master/DEPENDENCIES.md # https://github.com/max-privatevoid/iced/blob/master/DEPENDENCIES.md
expat expat
fontconfig fontconfig
@@ -78,7 +79,7 @@
inherit buildInputs nativeBuildInputs src; inherit buildInputs nativeBuildInputs src;
strictDeps = true; strictDeps = true;
RUST_BACKTRACE = "1"; # RUST_BACKTRACE = "1";
}; };
librepods = craneLib.buildPackage ( librepods = craneLib.buildPackage (
@@ -106,9 +107,9 @@
); );
in in
{ {
# checks = { checks = {
# inherit librepods; inherit librepods;
# }; };
packages.default = librepods; packages.default = librepods;
apps.default = { apps.default = {
@@ -128,7 +129,6 @@
] ]
++ buildInputs; ++ buildInputs;
# LD_LIBRARY_PATH = builtins.foldl' (a: b: "${a}:${b}/lib") "${pkgs.vulkan-loader}/lib" buildInputs;
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs; LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
}; };