mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 10:14:06 +02:00
specify msrv
This commit is contained in:
parent
dfd0b8ae90
commit
8ff5e5e6df
4 changed files with 45 additions and 16 deletions
15
flake.nix
15
flake.nix
|
|
@ -30,6 +30,7 @@
|
|||
inherit system overlays;
|
||||
};
|
||||
lib = pkgs.lib;
|
||||
inherit (builtins) listToAttrs fromTOML readFile;
|
||||
|
||||
hostTarget = pkgs.hostPlatform.config;
|
||||
targets = [
|
||||
|
|
@ -62,6 +63,16 @@
|
|||
};
|
||||
hostNaersk = cross-naersk'.hostNaersk;
|
||||
|
||||
msrv = (fromTOML (readFile ./Cargo.toml)).package.rust-version;
|
||||
msrvToolchain = pkgs.rust-bin.stable."${msrv}".default;
|
||||
naerskMsrv = let
|
||||
toolchain = msrvToolchain;
|
||||
in
|
||||
pkgs.callPackage naersk {
|
||||
cargo = toolchain;
|
||||
rustc = toolchain;
|
||||
};
|
||||
|
||||
mkHydraJobs = system: {
|
||||
parser = derivation {
|
||||
name = "parser";
|
||||
|
|
@ -104,6 +115,10 @@
|
|||
release = false;
|
||||
mode = "test";
|
||||
});
|
||||
msrv = naerskMsrv.buildPackage (nearskOpt
|
||||
// {
|
||||
mode = "check";
|
||||
});
|
||||
default = demostf-parser;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue