git.iko.soy/typeable/nixpkgs
on master help sign in
hol: k.8 -> k.10, closes #8477
commit723cd518b9a29be5e1c5f0015aa4a1563af830ac authorlaMudri <lamudri@gmail.com> dateTue 23 Jun 2015, 23:17 (11 years ago) parent3ec096f
1 file changed+21−9
pkgs/applications/science/logic/hol/default.nix+21−9
pkgs/applications/science/logic/hol/default.nix+21−9
@@ -1,22 +1,33 @@
1−{stdenv, fetchurl, polyml, graphviz, fontconfig, liberation_ttf,
1+{stdenv, pkgs, fetchurl, graphviz, fontconfig, liberation_ttf,
22 experimentalKernel ? true}:
33
44let
55 pname = "hol4";
6− version = "k.8";
7− holsubdir = "hol-kananaskis-8";
6+ vnum = "10";
7+in
8+
9+let
10+ version = "k.${vnum}";
11+ longVersion = "kananaskis-${vnum}";
12+ holsubdir = "hol-${longVersion}";
813 kernelFlag = if experimentalKernel then "-expk" else "-stdknl";
914in
1015
16+let
17+ polymlEnableShared = with pkgs; lib.overrideDerivation polyml (attrs: {
18+ configureFlags = "--enable-shared";
19+ });
20+in
21+
1122stdenv.mkDerivation {
1223 name = "${pname}-${version}";
1324
1425 src = fetchurl {
15− url = mirror://sourceforge/hol/hol/kananaskis-8/kananaskis-8.tar.gz;
16− sha256 = "5ce4c1e37301dbc38772694e98f1c7eabf69255908de204b280d8b2b1709e9d0";
26+ url = "mirror://sourceforge/hol/hol/${longVersion}/${holsubdir}.tar.gz";
27+ sha256 = "0x2wxksr305h1lrbklf6p42lp09rbhb4rsh74g0l70sgapyiac9b";
1728 };
1829
19− buildInputs = [polyml graphviz fontconfig liberation_ttf];
30+ buildInputs = [polymlEnableShared graphviz fontconfig liberation_ttf];
2031
2132 buildCommand = ''
2233
@@ -46,7 +57,7 @@ stdenv.mkDerivation {
4657 #sed -ie "/compute/,999 d" tools/build-sequence # for testing
4758
4859 poly < tools/smart-configure.sml
49−
60+
5061 bin/build ${kernelFlag} -symlink
5162
5263 mkdir -p "$out/bin"
@@ -54,7 +65,7 @@ stdenv.mkDerivation {
5465 # ln -s $out/src/hol4.${version}/bin $out/bin
5566 '';
5667
57− meta = {
68+ meta = with stdenv.lib; {
5869 description = "Interactive theorem prover based on Higher-Order Logic";
5970 longDescription = ''
6071 HOL4 is the latest version of the HOL interactive proof
@@ -69,6 +80,7 @@ stdenv.mkDerivation {
6980 checking.
7081 '';
7182 homepage = "http://hol.sourceforge.net/";
72− license = stdenv.lib.licenses.bsd3;
83+ license = licenses.bsd3;
84+ maintainers = with maintainers; [ mudri ];
7385 };
7486}