rep-gtk: refactor

Now with strictDeps and gtk-x11!
This commit is contained in:
Anderson Torres 2023-06-09 20:28:00 -03:00
parent acf84a140f
commit c24a1a2fc7

View file

@ -2,39 +2,43 @@
, stdenv , stdenv
, fetchurl , fetchurl
, autoreconfHook , autoreconfHook
, gtk2 , gtk2-x11
, librep , librep
, pkg-config , pkg-config
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "rep-gtk"; pname = "rep-gtk";
version = "0.90.8.3"; version = "0.90.8.3";
src = fetchurl { src = fetchurl {
url = "https://download.tuxfamily.org/librep/${pname}/${pname}_${version}.tar.xz"; url = "https://download.tuxfamily.org/librep/rep-gtk/rep-gtk_${finalAttrs.version}.tar.xz";
sha256 = "0hgkkywm8zczir3lqr727bn7ybgg71x9cwj1av8fykkr8pdpard9"; hash = "sha256-qWV120V5Tu/QVkFylno47y1/7DriZExHjp99VLmf80E=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
autoreconfHook autoreconfHook
pkg-config pkg-config
];
buildInputs = [
gtk2
librep librep
]; ];
buildInputs = [
gtk2-x11
librep
];
strictDeps = true;
patchPhase = '' patchPhase = ''
sed -e 's|installdir=$(repexecdir)|installdir=$(libdir)/rep|g' -i Makefile.in sed -e 's|installdir=$(repexecdir)|installdir=$(libdir)/rep|g' -i Makefile.in
''; '';
meta = with lib; { meta = {
homepage = "http://sawfish.tuxfamily.org"; homepage = "http://sawfish.tuxfamily.org";
description = "GTK bindings for librep"; description = "GTK bindings for librep";
license = licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
maintainers = [ maintainers.AndersonTorres ]; maintainers = [ lib.maintainers.AndersonTorres ];
platforms = platforms.unix; platforms = lib.platforms.unix;
}; };
} })
# TODO: investigate fetchFromGithub # TODO: investigate fetchFromGithub