1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/window-managers/sawfish/default.nix

55 lines
1.7 KiB
Nix
Raw Normal View History

2016-10-23 12:06:47 +01:00
{ stdenv, fetchurl
, pkgconfig, which, autoreconfHook
, rep-gtk, pango, gdk_pixbuf
, imlib, gettext, texinfo
, libXinerama, libXrandr, libXtst, libICE, libSM
, makeWrapper
}:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "sawfish-${version}";
2016-10-23 12:06:47 +01:00
version = "1.12.0";
sourceName = "sawfish_${version}";
2016-10-23 12:06:47 +01:00
src = fetchurl {
url = "http://download.tuxfamily.org/sawfish/${sourceName}.tar.xz";
sha256 = "1z7awzgw8d15aw17kpbj460pcxq8l2rhkaxk47w7yg9qrmg0xja4";
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ which
2016-10-23 12:06:47 +01:00
rep-gtk pango gdk_pixbuf imlib gettext texinfo
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 = ''
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 14:15:22 +01:00
--prefix REP_DL_LOAD_PATH : "$out/lib/rep" \
--set REP_LOAD_PATH "$out/share/sawfish/lisp"
done
'';
meta = {
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.
'';
homepage = http://sawfish.wikia.com;
license = licenses.gpl2;
maintainers = [ maintainers.AndersonTorres ];
};
}