Skip to content

Commit

Permalink
chore(nix): read MSRV from Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
EHfive committed Jan 25, 2025
1 parent c761bd7 commit 491e13f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@
einat = defaultPackage' prev;
};

cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml);

verifyMsrvArgs = {
rustVersion = nixpkgs.lib.versions.pad 3 cargoToml."package"."rust-version";
enableStatic = true;
enableIpv6 = true;
};

module = {
imports = [
(import ./nix/module.nix)
Expand All @@ -60,12 +68,6 @@
}
);
crossPackage = { ... }@args: crossPackage' ({ inherit pkgs; } // args);

verifyMsrvArgs = {
rustVersion = "1.80.0";
enableStatic = true;
enableIpv6 = true;
};
in
{
legacyPackages = (import nixpkgs) {
Expand Down

0 comments on commit 491e13f

Please sign in to comment.