summary refs log tree commit diff
path: root/pkgs/applications/science/math
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2011-07-07 21:53:21 +0000
committerPeter Simons <simons@cryp.to>2011-07-07 21:53:21 +0000
commit947610085d8deefe4a7a745f8e32ad0576f76099 (patch)
tree989c490476c03c3e3f0339e077abe4f9ba664ba9 /pkgs/applications/science/math
parent6f43e422ba6dd752256148bac8a62abaa0555a21 (diff)
downloadnixpkgs-947610085d8deefe4a7a745f8e32ad0576f76099.tar
nixpkgs-947610085d8deefe4a7a745f8e32ad0576f76099.tar.gz
nixpkgs-947610085d8deefe4a7a745f8e32ad0576f76099.tar.bz2
nixpkgs-947610085d8deefe4a7a745f8e32ad0576f76099.tar.lz
nixpkgs-947610085d8deefe4a7a745f8e32ad0576f76099.tar.xz
nixpkgs-947610085d8deefe4a7a745f8e32ad0576f76099.tar.zst
nixpkgs-947610085d8deefe4a7a745f8e32ad0576f76099.zip
Added Eukleides, a geometry drawing language.
svn path=/nixpkgs/trunk/; revision=27655
Diffstat (limited to 'pkgs/applications/science/math')
-rw-r--r--pkgs/applications/science/math/eukleides/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/eukleides/default.nix b/pkgs/applications/science/math/eukleides/default.nix
new file mode 100644
index 00000000000..9f65bcb8c14
--- /dev/null
+++ b/pkgs/applications/science/math/eukleides/default.nix
@@ -0,0 +1,37 @@
+{ stdenv, fetchurl, bison, flex, texinfo, readline, texLive }:
+
+let
+  name    = "eukleides";
+  version = "1.5.4";
+in
+stdenv.mkDerivation {
+  name = "${name}-${version}";
+
+  src = fetchurl {
+    url = "http://www.eukleides.org/files/${name}-${version}.tar.bz2";
+    sha256 = "0s8cyh75hdj89v6kpm3z24i48yzpkr8qf0cwxbs9ijxj1i38ki0q";
+  };
+
+  buildInputs = [bison flex texinfo readline texLive];
+
+  preConfigure = "sed -i 's/ginstall-info/install-info/g' doc/Makefile";
+  installPhase = "ensureDir $out/bin ; make PREFIX=$out install";
+
+  meta = {
+    description = "Geometry Drawing Language";
+    homepage = "http://www.eukleides.org/";
+    license = "GPLv2";
+
+    longDescription = ''
+      Eukleides is a computer language devoted to elementary plane
+      geometry. It aims to be a fairly comprehensive system to create
+      geometric figures, either static or dynamic. Eukleides allows to
+      handle basic types of data: numbers and strings, as well as
+      geometric types of data: points, vectors, sets (of points), lines,
+      circles and conics.
+    '';
+
+    platforms = stdenv.lib.platforms.all;
+    maintainers = [ stdenv.lib.maintainers.simons ];
+  };
+}