mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 09:36:20 +09:00
rocqPackages.hierarchy-builder: init at 1.9.1
This commit is contained in:
parent
e0047ddd37
commit
84667ad299
3 changed files with 58 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
lib,
|
lib,
|
||||||
mkCoqDerivation,
|
mkCoqDerivation,
|
||||||
coq,
|
coq,
|
||||||
|
rocqPackages,
|
||||||
stdlib,
|
stdlib,
|
||||||
coq-elpi,
|
coq-elpi,
|
||||||
version ? null,
|
version ? null,
|
||||||
|
@ -96,4 +97,20 @@ hb.overrideAttrs (
|
||||||
// lib.optionalAttrs (o.version != null && o.version == "1.8.1") {
|
// lib.optionalAttrs (o.version != null && o.version == "1.8.1") {
|
||||||
propagatedBuildInputs = o.propagatedBuildInputs ++ [ stdlib ];
|
propagatedBuildInputs = o.propagatedBuildInputs ++ [ stdlib ];
|
||||||
}
|
}
|
||||||
|
# this is just a wrapper for rocqPackages.hierarchy-builder for Rocq >= 9.0
|
||||||
|
//
|
||||||
|
lib.optionalAttrs
|
||||||
|
(coq.version != null && (coq.version == "dev" || lib.versions.isGe "9.0" coq.version))
|
||||||
|
{
|
||||||
|
configurePhase = ''
|
||||||
|
echo no configuration
|
||||||
|
'';
|
||||||
|
buildPhase = ''
|
||||||
|
echo building nothing
|
||||||
|
'';
|
||||||
|
installPhase = ''
|
||||||
|
echo installing nothing
|
||||||
|
'';
|
||||||
|
propagatedBuildInputs = o.propagatedBuildInputs ++ [ rocqPackages.hierarchy-builder ];
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
40
pkgs/development/rocq-modules/hierarchy-builder/default.nix
Normal file
40
pkgs/development/rocq-modules/hierarchy-builder/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
mkRocqDerivation,
|
||||||
|
rocq-core,
|
||||||
|
rocq-elpi,
|
||||||
|
version ? null,
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
hb = mkRocqDerivation {
|
||||||
|
pname = "hierarchy-builder";
|
||||||
|
owner = "math-comp";
|
||||||
|
inherit version;
|
||||||
|
defaultVersion =
|
||||||
|
with lib.versions;
|
||||||
|
lib.switch rocq-core.rocq-version [
|
||||||
|
{
|
||||||
|
case = range "9.0" "9.0";
|
||||||
|
out = "1.9.1";
|
||||||
|
}
|
||||||
|
] null;
|
||||||
|
release."1.9.1".sha256 = "sha256-AiS0ezMyfIYlXnuNsVLz1GlKQZzJX+ilkrKkbo0GrF0=";
|
||||||
|
releaseRev = v: "v${v}";
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ rocq-elpi ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "High level commands to declare a hierarchy based on packed classes";
|
||||||
|
maintainers = with maintainers; [
|
||||||
|
cohencyril
|
||||||
|
siraben
|
||||||
|
];
|
||||||
|
license = licenses.mit;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
hb.overrideAttrs (
|
||||||
|
o:
|
||||||
|
lib.optionalAttrs (o.version == "1.9.1") { installFlags = [ "DESTDIR=$(out)" ] ++ o.installFlags; }
|
||||||
|
)
|
|
@ -37,6 +37,7 @@ let
|
||||||
mkRocqDerivation = lib.makeOverridable (callPackage ../build-support/rocq { });
|
mkRocqDerivation = lib.makeOverridable (callPackage ../build-support/rocq { });
|
||||||
|
|
||||||
bignums = callPackage ../development/rocq-modules/bignums { };
|
bignums = callPackage ../development/rocq-modules/bignums { };
|
||||||
|
hierarchy-builder = callPackage ../development/rocq-modules/hierarchy-builder { };
|
||||||
rocq-elpi = callPackage ../development/rocq-modules/rocq-elpi { };
|
rocq-elpi = callPackage ../development/rocq-modules/rocq-elpi { };
|
||||||
stdlib = callPackage ../development/rocq-modules/stdlib { };
|
stdlib = callPackage ../development/rocq-modules/stdlib { };
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue