about summary refs log tree commit diff
path: root/pkgs/applications/science/geometry/drgeo/default.nix
blob: c18a6ed7426c184aaf72ec4267443c37958469e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
args : with args; 
let version = lib.attrByPath ["version"] "1.1.0" args; in
rec {
  src = fetchurl {
    url = mirror://sourceforge/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 = ["doPatch" "doConfigure" "doPreBuild" "doMakeInstall"];
  patches = [ ./struct.patch ];

  doPreBuild = fullDepEntry (''
    cp drgeo.desktop.in drgeo.desktop
  '') ["minInit" "doUnpack"];
      
  name = "drgeo-" + version;
  meta = {
    description = "Interactive geometry program";
  };
}