sawfish: refactor

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

View file

@ -4,7 +4,7 @@
, autoreconfHook , autoreconfHook
, gdk-pixbuf-xlib , gdk-pixbuf-xlib
, gettext , gettext
, gtk2 , gtk2-x11
, libICE , libICE
, libSM , libSM
, libxcrypt , libxcrypt
@ -20,13 +20,13 @@
, which , which
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "sawfish"; pname = "sawfish";
version = "1.13.0"; version = "1.13.0";
src = fetchurl { src = fetchurl {
url = "https://download.tuxfamily.org/sawfish/${pname}_${version}.tar.xz"; url = "https://download.tuxfamily.org/sawfish/sawfish_${finalAttrs.version}.tar.xz";
sha256 = "sha256-gWs8W/pMtQjbH8FEifzNAj3siZzxPd6xm8PmXXhyr10="; hash = "sha256-gWs8W/pMtQjbH8FEifzNAj3siZzxPd6xm8PmXXhyr10=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -38,9 +38,10 @@ stdenv.mkDerivation rec {
texinfo texinfo
which which
]; ];
buildInputs = [ buildInputs = [
gdk-pixbuf-xlib gdk-pixbuf-xlib
gtk2 gtk2-x11
libICE libICE
libSM libSM
libxcrypt libxcrypt
@ -60,18 +61,18 @@ stdenv.mkDerivation rec {
strictDeps = true; strictDeps = true;
postInstall = '' postInstall = ''
for i in $out/lib/sawfish/sawfish-menu \ for file in $out/lib/sawfish/sawfish-menu \
$out/bin/sawfish-about \ $out/bin/sawfish-about \
$out/bin/sawfish-client \ $out/bin/sawfish-client \
$out/bin/sawfish-config \ $out/bin/sawfish-config \
$out/bin/sawfish; do $out/bin/sawfish; do
wrapProgram $i \ wrapProgram $file \
--prefix REP_DL_LOAD_PATH : "$out/lib/rep" \ --prefix REP_DL_LOAD_PATH : "$out/lib/rep" \
--set REP_LOAD_PATH "$out/share/sawfish/lisp" --set REP_LOAD_PATH "$out/share/sawfish/lisp"
done done
''; '';
meta = with lib; { meta = {
homepage = "http://sawfish.tuxfamily.org/"; homepage = "http://sawfish.tuxfamily.org/";
description = "An extensible, Lisp-based window manager"; description = "An extensible, Lisp-based window manager";
longDescription = '' longDescription = ''
@ -81,8 +82,8 @@ stdenv.mkDerivation rec {
possible. All high-level WM functions are implemented in Lisp for future possible. All high-level WM functions are implemented in Lisp for future
extensibility or redefinition. extensibility or redefinition.
''; '';
license = licenses.gpl2Plus; license = lib.licenses.gpl2Plus;
maintainers = with maintainers; [ AndersonTorres ]; maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = platforms.unix; platforms = lib.platforms.unix;
}; };
} })