Files
nixpkgs/pkgs/by-name/ca/cargo-msrv/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

62 lines
1.3 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
rustup,
openssl,
stdenv,
makeWrapper,
gitUpdater,
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-msrv";
version = "0.18.4";
src = fetchFromGitHub {
owner = "foresterre";
repo = "cargo-msrv";
tag = "v${version}";
sha256 = "sha256-dvCKi40c9PmM05MK+0VGWxny0ZA+9YO/M3zmv5Qv6b0=";
};
cargoHash = "sha256-cIyoGFIxtX4/Dn4RbtMB75WQj+UO44V182u6C5smgSw=";
passthru = {
updateScript = gitUpdater {
rev-prefix = "v";
ignoredVersions = ".(rc|beta).*";
};
};
# Integration tests fail
doCheck = false;
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ openssl ];
nativeBuildInputs = [
pkg-config
makeWrapper
];
# Depends at run-time on having rustup in PATH
postInstall = ''
wrapProgram $out/bin/cargo-msrv --prefix PATH : ${lib.makeBinPath [ rustup ]};
'';
meta = with lib; {
description = "Cargo subcommand \"msrv\": assists with finding your minimum supported Rust version (MSRV)";
mainProgram = "cargo-msrv";
homepage = "https://github.com/foresterre/cargo-msrv";
license = with licenses; [
asl20 # or
mit
];
maintainers = with maintainers; [
otavio
matthiasbeyer
];
};
}