Files
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

54 lines
1.2 KiB
Nix

{
lib,
mkCoqDerivation,
coq,
stdlib,
findutils,
version ? null,
}:
(mkCoqDerivation {
pname = "coqutil";
owner = "mit-plv";
inherit version;
defaultVersion =
with lib.versions;
lib.switch coq.version [
{
case = isGe "9.0";
out = "0.0.7";
}
{
case = range "8.18" "8.20";
out = "0.0.6";
}
{
case = range "8.17" "8.20";
out = "0.0.5";
}
] null;
releaseRev = v: "v${v}";
release."0.0.7".sha256 = "sha256-A5QDQscZ9BUxxcGTI2RDYOKTZoCYexJQuGNl9i+Wt/g=";
release."0.0.6".sha256 = "sha256-c/ddrj0ahuaj9Zu7YBqK7Q0ur+LK7Fgaa//nxQpQcm4=";
release."0.0.5".sha256 = "sha256-vkZIAAr82GNuCGlCVRgSCj/nqIdD8FITBiX1a8fybqw=";
nativeBuildInputs = [ findutils ];
propagatedBuildInputs = [ ];
meta = {
description = "Coq library for tactics, basic definitions, sets, maps";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ stepbrobd ];
};
}).overrideAttrs
(
o:
lib.optionalAttrs (o.version != null && o.version != "dev" && lib.versionAtLeast o.version "0.0.7")
{
propagatedBuildInputs = o.propagatedBuildInputs ++ [ stdlib ];
}
)