Revamp nix packaging

This commit is contained in:
2025-03-21 15:12:06 +01:00
parent 07e842660b
commit bbe4cf05cb
3 changed files with 28 additions and 16 deletions
+3 -7
View File
@@ -25,7 +25,9 @@
};
rust-bin = rust-overlay.lib.mkRustBin { } pkgs.buildPackages;
toolchain = rust-bin.stable.latest.default;
toolchain = rust-bin.stable.latest.default.override {
extensions = [ "rust-src" "rust-analyzer" "rust-std" ];
};
in f system pkgs toolchain);
in {
apps = forAllSystems (system: pkgs: _: {
@@ -42,12 +44,6 @@
default = pkgs.mkShell {
nativeBuildInputs = [
toolchain
pkgs.pkg-config
];
buildInputs = [
# pkgs.systemdLibs.dev
pkgs.dbus.dev
];
RUST_SRC_PATH = "${toolchain}/lib/rustlib/src/rust/library";