2021-03-03 01:00:28 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-11-17 13:20:02 +00:00
|
|
|
, fetchurl
|
|
|
|
, autoreconfHook
|
|
|
|
, gdk-pixbuf-xlib
|
|
|
|
, gettext
|
2021-03-03 01:00:28 +00:00
|
|
|
, gtk2
|
|
|
|
, imlib
|
|
|
|
, libICE
|
|
|
|
, libSM
|
2020-11-17 13:20:02 +00:00
|
|
|
, libXinerama
|
|
|
|
, libXrandr
|
|
|
|
, libXtst
|
2021-03-03 01:00:28 +00:00
|
|
|
, librep
|
2015-04-28 09:06:56 +00:00
|
|
|
, makeWrapper
|
2021-03-03 01:00:28 +00:00
|
|
|
, pango
|
|
|
|
, pkg-config
|
|
|
|
, rep-gtk
|
|
|
|
, texinfo
|
|
|
|
, which
|
2015-04-28 09:06:56 +00:00
|
|
|
}:
|
2015-02-06 16:32:55 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "sawfish";
|
2021-12-26 14:13:38 +00:00
|
|
|
version = "1.13.0";
|
2015-02-06 16:32:55 +00:00
|
|
|
|
2016-10-23 11:06:47 +00:00
|
|
|
src = fetchurl {
|
2020-11-17 13:20:02 +00:00
|
|
|
url = "https://download.tuxfamily.org/sawfish/${pname}_${version}.tar.xz";
|
2021-12-26 14:13:38 +00:00
|
|
|
sha256 = "sha256-gWs8W/pMtQjbH8FEifzNAj3siZzxPd6xm8PmXXhyr10=";
|
2015-02-06 16:32:55 +00:00
|
|
|
};
|
|
|
|
|
2021-03-03 01:00:28 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
gettext
|
|
|
|
librep
|
|
|
|
makeWrapper
|
|
|
|
pkg-config
|
|
|
|
texinfo
|
|
|
|
which
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
gdk-pixbuf-xlib
|
|
|
|
gtk2
|
|
|
|
imlib
|
|
|
|
libICE
|
|
|
|
libSM
|
|
|
|
libXinerama
|
|
|
|
libXrandr
|
|
|
|
libXtst
|
|
|
|
librep
|
|
|
|
pango
|
|
|
|
rep-gtk
|
|
|
|
];
|
2015-02-06 16:32:55 +00:00
|
|
|
|
2021-03-03 01:00:28 +00:00
|
|
|
postPatch = ''
|
2015-02-06 16:32:55 +00:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-03-03 01:00:28 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2015-02-06 16:32:55 +00:00
|
|
|
postInstall = ''
|
2021-03-03 01:00:28 +00: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 16:32:55 +00:00
|
|
|
wrapProgram $i \
|
2017-08-10 13:15:22 +00:00
|
|
|
--prefix REP_DL_LOAD_PATH : "$out/lib/rep" \
|
|
|
|
--set REP_LOAD_PATH "$out/share/sawfish/lisp"
|
2015-02-06 16:32:55 +00:00
|
|
|
done
|
|
|
|
'';
|
2015-04-28 09:06:56 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-03-03 01:00:28 +00:00
|
|
|
homepage = "http://sawfish.tuxfamily.org/";
|
2015-02-06 16:32:55 +00:00
|
|
|
description = "An extensible, Lisp-based window manager";
|
|
|
|
longDescription = ''
|
2021-03-03 01:00:28 +00:00
|
|
|
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.
|
2015-02-06 16:32:55 +00:00
|
|
|
'';
|
2021-03-03 01:00:28 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
platforms = platforms.unix;
|
2015-02-06 16:32:55 +00:00
|
|
|
};
|
|
|
|
}
|