nixpkgs/pkgs/applications/window-managers/sawfish/default.nix

63 lines
1.7 KiB
Nix
Raw Normal View History

{ lib, stdenv
2020-11-17 13:20:02 +00:00
, fetchurl
, pkg-config
, which
, autoreconfHook
, rep-gtk
, pango
, gdk-pixbuf-xlib
, imlib
, gettext
, texinfo
, libXinerama
, libXrandr
, libXtst
, libICE
, libSM
, makeWrapper
}:
stdenv.mkDerivation rec {
pname = "sawfish";
version = "1.12.90";
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";
sha256 = "18p8srqqj9vjffg13qhspfz2gr1h4vfs10qzlv89g76r289iam31";
};
2020-11-17 13:20:02 +00:00
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ which
rep-gtk pango gdk-pixbuf-xlib imlib gettext texinfo
2016-10-23 11:06:47 +00:00
libXinerama libXrandr libXtst libICE libSM
makeWrapper ];
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 13:20:02 +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
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"
done
'';
meta = with lib; {
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 13:20:02 +00:00
homepage = "https://sawfish.fandom.com/wiki/Main_Page";
license = licenses.gpl2;
maintainers = [ maintainers.AndersonTorres ];
};
}