acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / re / rep-gtk / package.nix
blob872eacb5011ea5c4256cf0bb342f457ee2288e17
1 { lib
2 , stdenv
3 , fetchurl
4 , autoreconfHook
5 , gtk2-x11
6 , librep
7 , pkg-config
8 }:
10 stdenv.mkDerivation (finalAttrs: {
11   pname = "rep-gtk";
12   version = "0.90.8.3";
14   src = fetchurl {
15     url = "https://download.tuxfamily.org/librep/rep-gtk/rep-gtk_${finalAttrs.version}.tar.xz";
16     hash = "sha256-qWV120V5Tu/QVkFylno47y1/7DriZExHjp99VLmf80E=";
17   };
19   nativeBuildInputs = [
20     autoreconfHook
21     pkg-config
22     librep
23   ];
25   buildInputs = [
26     gtk2-x11
27     librep
28   ];
30   strictDeps = true;
32   env.NIX_CFLAGS_COMPILE = toString (
33     lib.optionals stdenv.cc.isClang [
34       "-Wno-error=implicit-function-declaration"
35       "-Wno-error=int-conversion"
36     ]
37   );
39   patchPhase = ''
40     sed -e 's|installdir=$(repexecdir)|installdir=$(libdir)/rep|g' -i Makefile.in
41   '';
43   meta = {
44     homepage = "http://sawfish.tuxfamily.org";
45     description = "GTK bindings for librep";
46     license = lib.licenses.gpl2Plus;
47     maintainers = [ lib.maintainers.AndersonTorres ];
48     platforms = lib.platforms.unix;
49   };
51 # TODO: investigate fetchFromGithub