From 5ba53d93b505fb78487f23f9cfb4cc43fd21fd40 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Fri, 27 Jun 2008 19:15:01 +0000 Subject: [PATCH] Added DrGeo svn path=/nixpkgs/trunk/; revision=12204 --- .../science/geometry/drgeo/default.nix | 24 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 5 ++++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/applications/science/geometry/drgeo/default.nix diff --git a/pkgs/applications/science/geometry/drgeo/default.nix b/pkgs/applications/science/geometry/drgeo/default.nix new file mode 100644 index 000000000000..b254601a3d65 --- /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"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 574e385d331e..8852f9e1dfad 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6884,6 +6884,11 @@ let pkgs = rec { inherit fetchurl stdenv; }; + drgeo = builderDefsPackage (import ../applications/science/geometry/drgeo) { + inherit (gnome) libglade gtk; + inherit libxml2 guile perl intltool libtool pkgconfig; + } null; + emboss = import ../applications/science/biology/emboss { inherit fetchurl stdenv readline perl libpng zlib; inherit (xorg) libX11 libXt;