3
0
Fork 0
forked from mirrors/nixpkgs

drgeo: reimplement using mkDerivation

This commit is contained in:
Joachim Fasting 2015-06-19 14:20:05 +02:00
parent ddb9c3b701
commit 42fc03411f
2 changed files with 12 additions and 13 deletions

View file

@ -1,24 +1,23 @@
args @ { libxml2, perl, intltool, libtool, pkgconfig, gtk, ... } : with args;
let version = lib.attrByPath ["version"] "1.1.0" args; in
rec {
{ stdenv, fetchurl, libglade, gtk, guile, libxml2, perl
, intltool, libtool, pkgconfig }:
stdenv.mkDerivation rec {
name = "drgeo-${version}";
version = "1.1.0";
src = fetchurl {
url = mirror://sourceforge/ofset/drgeo-1.1.0.tar.gz;
url = "mirror://sourceforge/ofset/${name}.tar.gz";
sha256 = "05i2czgzhpzi80xxghinvkyqx4ym0gm9f38fz53idjhigiivp4wc";
};
patches = [ ./struct.patch ];
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 (''
prebuild = ''
cp drgeo.desktop.in drgeo.desktop
'') ["minInit" "doUnpack"];
'';
name = "drgeo-" + version;
meta = {
description = "Interactive geometry program";
};

View file

@ -14610,7 +14610,7 @@ let
### SCIENCE/GEOMETRY
drgeo = builderDefsPackage (callPackage ../applications/science/geometry/drgeo) {
drgeo = callPackage ../applications/science/geometry/drgeo {
inherit (gnome) libglade;
guile = guile_1_8;
};