sawfish: cleanup

A cleanup and reformatting.
This commit is contained in:
AndersonTorres 2021-03-02 22:00:28 -03:00
parent d8acd4dabe
commit 1a5a29b016

View file

@ -1,20 +1,23 @@
{ lib, stdenv { lib
, stdenv
, fetchurl , fetchurl
, pkg-config
, which
, autoreconfHook , autoreconfHook
, rep-gtk
, pango
, gdk-pixbuf-xlib , gdk-pixbuf-xlib
, imlib
, gettext , gettext
, texinfo , gtk2
, imlib
, libICE
, libSM
, libXinerama , libXinerama
, libXrandr , libXrandr
, libXtst , libXtst
, libICE , librep
, libSM
, makeWrapper , makeWrapper
, pango
, pkg-config
, rep-gtk
, texinfo
, which
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -26,20 +29,42 @@ stdenv.mkDerivation rec {
sha256 = "18p8srqqj9vjffg13qhspfz2gr1h4vfs10qzlv89g76r289iam31"; sha256 = "18p8srqqj9vjffg13qhspfz2gr1h4vfs10qzlv89g76r289iam31";
}; };
nativeBuildInputs = [ autoreconfHook pkg-config ]; nativeBuildInputs = [
buildInputs = [ which autoreconfHook
rep-gtk pango gdk-pixbuf-xlib imlib gettext texinfo gettext
libXinerama libXrandr libXtst libICE libSM librep
makeWrapper ]; makeWrapper
pkg-config
texinfo
which
];
buildInputs = [
gdk-pixbuf-xlib
gtk2
imlib
libICE
libSM
libXinerama
libXrandr
libXtst
librep
pango
rep-gtk
];
patchPhase = '' postPatch = ''
sed -e 's|REP_DL_LOAD_PATH=|REP_DL_LOAD_PATH=$(REP_DL_LOAD_PATH):|g' -i Makedefs.in sed -e 's|REP_DL_LOAD_PATH=|REP_DL_LOAD_PATH=$(REP_DL_LOAD_PATH):|g' -i Makedefs.in
sed -e 's|$(repexecdir)|$(libdir)/rep|g' -i src/Makefile.in sed -e 's|$(repexecdir)|$(libdir)/rep|g' -i src/Makefile.in
''; '';
strictDeps = true;
postInstall = '' postInstall = ''
for i in $out/lib/sawfish/sawfish-menu $out/bin/sawfish-about \ for i in $out/lib/sawfish/sawfish-menu \
$out/bin/sawfish-client $out/bin/sawfish-config $out/bin/sawfish; do $out/bin/sawfish-about \
$out/bin/sawfish-client \
$out/bin/sawfish-config \
$out/bin/sawfish; do
wrapProgram $i \ wrapProgram $i \
--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"
@ -47,16 +72,17 @@ stdenv.mkDerivation rec {
''; '';
meta = with lib; { meta = with lib; {
homepage = "http://sawfish.tuxfamily.org/";
description = "An extensible, Lisp-based window manager"; description = "An extensible, Lisp-based window manager";
longDescription = '' longDescription = ''
Sawfish is an extensible window manager using a Lisp-based scripting language. Sawfish is an extensible window manager using a Lisp-based scripting
Its policy is very minimal compared to most window managers. Its aim is simply language. Its policy is very minimal compared to most window managers. Its
to manage windows in the most flexible and attractive manner possible. aim is simply to manage windows in the most flexible and attractive manner
All high-level WM functions are implemented in Lisp for future extensibility possible. All high-level WM functions are implemented in Lisp for future
or redefinition. extensibility or redefinition.
''; '';
homepage = "https://sawfish.fandom.com/wiki/Main_Page"; license = licenses.gpl2Plus;
license = licenses.gpl2; maintainers = with maintainers; [ AndersonTorres ];
maintainers = [ maintainers.AndersonTorres ]; platforms = platforms.unix;
}; };
} }