summary refs log tree commit diff
path: root/pkgs/applications/science/geometry/drgeo/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/science/geometry/drgeo/default.nix')
-rw-r--r--pkgs/applications/science/geometry/drgeo/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/applications/science/geometry/drgeo/default.nix b/pkgs/applications/science/geometry/drgeo/default.nix
new file mode 100644
index 00000000000..b254601a3d6
--- /dev/null
+++ b/pkgs/applications/science/geometry/drgeo/default.nix
@@ -0,0 +1,24 @@
+args : with args; 
+let version = lib.getAttr ["version"] "1.1.0" args; in
+rec {
+  src = fetchurl {
+    url = http://downloads.sourceforge.net/ofset/drgeo-1.1.0.tar.gz;
+    sha256 = "05i2czgzhpzi80xxghinvkyqx4ym0gm9f38fz53idjhigiivp4wc";
+  };
+
+  buildInputs = [libglade gtk guile libxml2
+    perl intltool libtool pkgconfig];
+  configureFlags = [];
+
+  /* doConfigure should be specified separately */
+  phaseNames = ["doConfigure" "doPreBuild" "doMakeInstall"];
+
+  doPreBuild = FullDepEntry (''
+    cp drgeo.desktop.in drgeo.desktop
+  '') ["minInit" "doUnpack"];
+      
+  name = "drgeo-" + version;
+  meta = {
+    description = "Interactive geometry program";
+  };
+}