fix: make shell use proper msrv

This commit is contained in:
b4mbus
2024-06-16 16:00:22 +02:00
parent b2bdcf4008
commit 3c6753506e
2 changed files with 27 additions and 27 deletions

View File

@@ -1,15 +1,13 @@
{
lib,
stdenv,
rust-bin, # From overlay
rust,
makeRustPlatform,
packageToml,
rust,
libiconv,
darwin,
python3,
}: let
mkPackage = rust:
}:
(makeRustPlatform {
cargo = rust;
rustc = rust;
@@ -28,11 +26,10 @@
cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = [rust];
buildInputs = (lib.optional stdenv.isDarwin [
buildInputs = lib.optional stdenv.isDarwin [
libiconv
darwin.apple_sdk.frameworks.Foundation
]);
];
nativeCheckInputs = [python3];
};
in (mkPackage rust-bin.stable.latest.minimal)
}

View File

@@ -33,7 +33,10 @@
devShells = pkgs.callPackages ./shell.nix {inherit packageToml self';};
packages.default = pkgs.callPackage ./default.nix {inherit packageToml;};
packages.default = pkgs.callPackage ./default.nix {
inherit packageToml;
rust = pkgs.rust-bin.stable.latest.minimal;
};
};
};
}