1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 10:14:06 +02:00

specify msrv

This commit is contained in:
Robin Appelman 2024-04-07 16:56:34 +02:00
commit 8ff5e5e6df
4 changed files with 45 additions and 16 deletions

View file

@ -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;
};