summary refs log tree commit diff
path: root/pkgs/development/libraries/ganv/default.nix
blob: 5a21af6a2b33c91514e4d70c2d2a0834e893306b (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, fetchgit, graphviz, gtk2, gtkmm2, pkgconfig, python }:

stdenv.mkDerivation rec {
  name = "ganv-unstable-${rev}";
  rev = "2016-10-15";

  src = fetchgit {
    url = "http://git.drobilla.net/cgit.cgi/ganv.git";
    rev = "31685d283e9b811b61014f820c42807f4effa071";
    sha256 = "0xmbykdl42jn9cgzrqrys5lng67d26nk5xq10wkkvjqldiwdck56";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ graphviz gtk2 gtkmm2 python ];

  configurePhase = "${python.interpreter} waf configure --prefix=$out";

  buildPhase = "${python.interpreter} waf";

  installPhase = "${python.interpreter} waf install";

  meta = with stdenv.lib; {
    description = "An interactive Gtk canvas widget for graph-based interfaces";
    homepage = http://drobilla.net;
    license = licenses.gpl3;
    maintainers = [ maintainers.goibhniu ];
    platforms = platforms.linux;
  };
}