summary refs log tree commit diff
path: root/pkgs/applications/science/geometry/drgeo/default.nix
blob: e8ae4d01a6d6a4b2db3e2d42115246161ca0cd5c (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
26
27
28
29
{ stdenv, fetchurl, libglade, gtk2, guile, libxml2, perl
, intltool, libtool, pkgconfig }:

stdenv.mkDerivation rec {
  pname = "drgeo";
  version = "1.1.0";

  hardeningDisable = [ "format" ];

  src = fetchurl {
    url = "mirror://sourceforge/ofset/${pname}-${version}.tar.gz";
    sha256 = "05i2czgzhpzi80xxghinvkyqx4ym0gm9f38fz53idjhigiivp4wc";
  };
  patches = [ ./struct.patch ];

  buildInputs = [libglade gtk2 guile libxml2
    perl intltool libtool pkgconfig];

  prebuild = ''
    cp drgeo.desktop.in drgeo.desktop
  '';

  meta = with stdenv.lib; {
    description = "Interactive geometry program";
    homepage = https://sourceforge.net/projects/ofset;
    license = licenses.gpl2;
    platforms = platforms.linux;
  };
}