2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2020-11-17 14:20:02 +01:00
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, which
|
|
|
|
, autoreconfHook
|
|
|
|
, rep-gtk
|
|
|
|
, pango
|
|
|
|
, gdk-pixbuf-xlib
|
|
|
|
, imlib
|
|
|
|
, gettext
|
|
|
|
, texinfo
|
|
|
|
, libXinerama
|
|
|
|
, libXrandr
|
|
|
|
, libXtst
|
|
|
|
, libICE
|
|
|
|
, libSM
|
2015-04-28 11:06:56 +02:00
|
|
|
, makeWrapper
|
|
|
|
}:
|
2015-02-06 17:32:55 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "sawfish";
|
2018-03-15 14:36:47 +01:00
|
|
|
version = "1.12.90";
|
2015-02-06 17:32:55 +01:00
|
|
|
|
2016-10-23 13:06:47 +02:00
|
|
|
src = fetchurl {
|
2020-11-17 14:20:02 +01:00
|
|
|
url = "https://download.tuxfamily.org/sawfish/${pname}_${version}.tar.xz";
|
2018-03-15 14:36:47 +01:00
|
|
|
sha256 = "18p8srqqj9vjffg13qhspfz2gr1h4vfs10qzlv89g76r289iam31";
|
2015-02-06 17:32:55 +01:00
|
|
|
};
|
|
|
|
|
2020-11-17 14:20:02 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2017-09-05 23:26:13 +02:00
|
|
|
buildInputs = [ which
|
2020-10-03 16:26:53 +02:00
|
|
|
rep-gtk pango gdk-pixbuf-xlib imlib gettext texinfo
|
2016-10-23 13:06:47 +02:00
|
|
|
libXinerama libXrandr libXtst libICE libSM
|
|
|
|
makeWrapper ];
|
2015-02-06 17:32:55 +01:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2020-11-17 14:20:02 +01:00
|
|
|
for i in $out/lib/sawfish/sawfish-menu $out/bin/sawfish-about \
|
|
|
|
$out/bin/sawfish-client $out/bin/sawfish-config $out/bin/sawfish; do
|
2015-02-06 17:32:55 +01:00
|
|
|
wrapProgram $i \
|
2017-08-10 15:15:22 +02:00
|
|
|
--prefix REP_DL_LOAD_PATH : "$out/lib/rep" \
|
|
|
|
--set REP_LOAD_PATH "$out/share/sawfish/lisp"
|
2015-02-06 17:32:55 +01:00
|
|
|
done
|
|
|
|
'';
|
2015-04-28 11:06:56 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2015-02-06 17:32:55 +01:00
|
|
|
description = "An extensible, Lisp-based window manager";
|
|
|
|
longDescription = ''
|
|
|
|
Sawfish is an extensible window manager using a Lisp-based scripting language.
|
|
|
|
Its policy is very minimal compared to most window managers. Its aim is simply
|
|
|
|
to manage windows in the most flexible and attractive manner possible.
|
|
|
|
All high-level WM functions are implemented in Lisp for future extensibility
|
|
|
|
or redefinition.
|
|
|
|
'';
|
2020-11-17 14:20:02 +01:00
|
|
|
homepage = "https://sawfish.fandom.com/wiki/Main_Page";
|
2015-02-06 17:32:55 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
};
|
|
|
|
}
|