summary refs log tree commit diff
path: root/pkgs/development/coq-modules/flocq
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2014-10-21 00:23:36 -0500
committerJohn Wiegley <johnw@newartisans.com>2014-10-21 00:23:36 -0500
commit89e68ee32ea3ca2894f76e243704820eb48dd0c1 (patch)
treec47ca3e8551ebd742f6cb397e287f0c7ec3ac1cd /pkgs/development/coq-modules/flocq
parent8d8acebfbb31ca90880d99ab3dbdb00607bbff58 (diff)
downloadnixpkgs-89e68ee32ea3ca2894f76e243704820eb48dd0c1.tar
nixpkgs-89e68ee32ea3ca2894f76e243704820eb48dd0c1.tar.gz
nixpkgs-89e68ee32ea3ca2894f76e243704820eb48dd0c1.tar.bz2
nixpkgs-89e68ee32ea3ca2894f76e243704820eb48dd0c1.tar.lz
nixpkgs-89e68ee32ea3ca2894f76e243704820eb48dd0c1.tar.xz
nixpkgs-89e68ee32ea3ca2894f76e243704820eb48dd0c1.tar.zst
nixpkgs-89e68ee32ea3ca2894f76e243704820eb48dd0c1.zip
coqPackages.flocq: new expression
Diffstat (limited to 'pkgs/development/coq-modules/flocq')
-rw-r--r--pkgs/development/coq-modules/flocq/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/coq-modules/flocq/default.nix b/pkgs/development/coq-modules/flocq/default.nix
new file mode 100644
index 00000000000..c26c22b0a6d
--- /dev/null
+++ b/pkgs/development/coq-modules/flocq/default.nix
@@ -0,0 +1,33 @@
+{stdenv, bash, which, autoconf, automake, fetchurl, coq}:
+
+stdenv.mkDerivation rec {
+
+  name = "coq-flocq-${coq.coq-version}-${version}";
+  version = "2.4.0";
+
+  src = fetchurl {
+    url = https://gforge.inria.fr/frs/download.php/file/33979/flocq-2.4.0.tar.gz;
+    sha256 = "020x4nkkrvndkvp5zwb9vads8a2jh603khcwrm40yhqldgfd8zlv";
+  };
+
+  buildInputs = [ coq.ocaml coq.camlp5 bash which autoconf automake ];
+  propagatedBuildInputs = [ coq ];
+
+  buildPhase = ''
+    ${bash}/bin/bash autogen.sh
+    ${bash}/bin/bash configure --libdir=$out/lib/coq/${coq.coq-version}/user-contrib/Flocq
+    ./remake
+  '';
+
+  installPhase = ''
+    ./remake install
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = http://flocq.gforge.inria.fr/;
+    description = "Flocq (Floats for Coq) is a floating-point formalization for the Coq system";
+    maintainers = with maintainers; [ jwiegley ];
+    platforms = coq.meta.platforms;
+  };
+
+}