Skip to content

Commit 19d66fa

Browse files
cu1ch3nvbgl
authored andcommitted
coqPackages_8_19.autosubst-ocaml: init at 1.1
1 parent 24e0ade commit 19d66fa

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
lib,
3+
mkCoqDerivation,
4+
coq,
5+
version ? null,
6+
}:
7+
8+
mkCoqDerivation {
9+
pname = "autosubst-ocaml";
10+
owner = "uds-psl";
11+
12+
release."1.1+8.19".sha256 = "sha256-AGbhw/6lg4GpDE6hZBhau9DLW7HVXa0UzGvJfSV8oHE=";
13+
14+
inherit version;
15+
defaultVersion =
16+
with lib.versions;
17+
lib.switch coq.coq-version [
18+
{
19+
case = isEq "8.19";
20+
out = "1.1+8.19";
21+
}
22+
] null;
23+
24+
buildInputs = with coq.ocamlPackages; [
25+
angstrom
26+
ocamlgraph
27+
ppx_deriving
28+
ppxlib
29+
];
30+
useDune = true;
31+
32+
buildPhase = ''
33+
dune build
34+
'';
35+
36+
installPhase = ''
37+
dune install --prefix $out --libdir $OCAMLFIND_DESTDIR
38+
'';
39+
40+
meta = with lib; {
41+
description = "An OCaml reimplementation of the Autosubst 2 code generator";
42+
homepage = "https://github.com/uds-psl/autosubst-ocaml";
43+
mainProgram = "autosubst";
44+
maintainers = with maintainers; [ chen ];
45+
license = licenses.mit;
46+
};
47+
}

pkgs/top-level/coq-packages.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ let
2222
async-test = callPackage ../development/coq-modules/async-test {};
2323
atbr = callPackage ../development/coq-modules/atbr {};
2424
autosubst = callPackage ../development/coq-modules/autosubst {};
25+
autosubst-ocaml = callPackage ../development/coq-modules/autosubst-ocaml {};
2526
bbv = callPackage ../development/coq-modules/bbv {};
2627
bignums = if lib.versionAtLeast coq.coq-version "8.6"
2728
then callPackage ../development/coq-modules/bignums {}

0 commit comments

Comments
 (0)