Skip to content

Commit eb2be6d

Browse files
committedJul 8, 2017
acgtk: 1.1 -> 1.3.1
1 parent 4523f02 commit eb2be6d

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed
 

‎pkgs/applications/science/logic/acgtk/default.nix

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
1-
{ stdenv, fetchurl, ocaml, findlib, dypgen, bolt, ansiterminal, camlp4,
1+
{ stdenv, fetchurl, ocamlPackages,
22
buildBytecode ? true,
33
buildNative ? true,
44
installExamples ? true,
55
installEmacsMode ? true }:
66

7-
let inherit (stdenv.lib) getVersion versionAtLeast
7+
let inherit (stdenv.lib) versionAtLeast
88
optionals optionalString; in
99

10-
assert versionAtLeast (getVersion ocaml) "3.07";
11-
assert versionAtLeast (getVersion dypgen) "20080925";
12-
assert versionAtLeast (getVersion bolt) "1.4";
10+
let inherit (ocamlPackages) ocaml camlp4; in
1311

1412
assert buildBytecode || buildNative;
1513

1614
stdenv.mkDerivation {
1715

18-
name = "acgtk-1.1";
16+
name = "acgtk-1.3.1";
1917

2018
src = fetchurl {
21-
url = "http://www.loria.fr/equipes/calligramme/acg/software/acg-1.1-20140905.tar.gz";
22-
sha256 = "1k1ldqg34bwmgdpmi9gry9czlsk85ycjxnkd25fhlf3mmgg4n9p6";
19+
url = http://calligramme.loria.fr/acg/software/acg-1.3.1-20170303.tar.gz;
20+
sha256 = "1hhrf6bx2x2wbv5ldn4fnxhpr9lyrj3zh1vcnx8wf8f06ih4rzfq";
2321
};
2422

25-
buildInputs = [ ocaml findlib dypgen bolt ansiterminal camlp4 ];
23+
buildInputs = with ocamlPackages; [
24+
ocaml findlib camlp4 ansiterminal biniou bolt ocaml_cairo2 dypgen easy-format ocf yojson
25+
];
2626

2727
patches = [ ./install-emacs-to-site-lisp.patch
2828
./use-nix-ocaml-byteflags.patch ];
2929

3030
postPatch = stdenv.lib.optionalString (camlp4 != null) ''
3131
substituteInPlace src/Makefile.master.in \
32-
--replace "+camlp4" "${camlp4}/lib/ocaml/${getVersion ocaml}/site-lib/camlp4/"
32+
--replace "+camlp4" "${camlp4}/lib/ocaml/${ocaml.version}/site-lib/camlp4/"
3333
'';
3434

3535
# The bytecode executable is dependent on the dynamic library provided by
3636
# ANSITerminal. We can use the -dllpath flag of ocamlc (analogous to
3737
# -rpath) to make sure that ocamlrun is able to link the library at
3838
# runtime and that Nix detects a runtime dependency.
39-
NIX_OCAML_BYTEFLAGS = "-dllpath ${ansiterminal}/lib/ocaml/${getVersion ocaml}/site-lib/ANSITerminal";
39+
NIX_OCAML_BYTEFLAGS = "-dllpath ${ocamlPackages.ansiterminal}/lib/ocaml/${ocaml.version}/site-lib/ANSITerminal";
4040

4141
buildFlags = optionalString buildBytecode "byte"
4242
+ " "

‎pkgs/top-level/all-packages.nix

+4
Original file line numberDiff line numberDiff line change
@@ -17927,6 +17927,10 @@ with pkgs;
1792717927

1792817928
abella = callPackage ../applications/science/logic/abella {};
1792917929

17930+
acgtk = callPackage ../applications/science/logic/acgtk {
17931+
ocamlPackages = ocamlPackages_4_03;
17932+
};
17933+
1793017934
alt-ergo = callPackage ../applications/science/logic/alt-ergo {
1793117935
ocamlPackages = ocamlPackages_4_02;
1793217936
};

‎pkgs/top-level/ocaml-packages.nix

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ let
1515

1616
buildOcaml = callPackage ../build-support/ocaml { };
1717

18-
acgtk = callPackage ../applications/science/logic/acgtk { };
19-
2018
alcotest = callPackage ../development/ocaml-modules/alcotest {};
2119

2220
angstrom = callPackage ../development/ocaml-modules/angstrom { };

0 commit comments

Comments
 (0)
Please sign in to comment.