summary refs log tree commit diff
path: root/pkgs/development/libraries/rep-gtk/default.nix
blob: 433da05d088fa8c7e7409c3ea98b2a17c9cfb33a (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
30
31
32
33
34
35
36
37
38
39
40
{ lib
, stdenv
, fetchurl
, autoreconfHook
, gtk2
, librep
, pkg-config
}:

stdenv.mkDerivation rec {
  pname = "rep-gtk";
  version = "0.90.8.3";

  src = fetchurl {
    url = "https://download.tuxfamily.org/librep/${pname}/${pname}_${version}.tar.xz";
    sha256 = "0hgkkywm8zczir3lqr727bn7ybgg71x9cwj1av8fykkr8pdpard9";
  };

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
  ];
  buildInputs = [
    gtk2
    librep
  ];

  patchPhase = ''
    sed -e 's|installdir=$(repexecdir)|installdir=$(libdir)/rep|g' -i Makefile.in
  '';

  meta = with lib; {
    homepage = "http://sawfish.tuxfamily.org";
    description = "GTK bindings for librep";
    license = licenses.gpl2Plus;
    maintainers = [ maintainers.AndersonTorres ];
    platforms = platforms.unix;
  };
}
# TODO: investigate fetchFromGithub