2013-10-18 18:57:24 +02:00
|
|
|
{pkgs, nixLib, clwrapper, cl-ppcre, clx, buildLispPackage}:
|
2013-10-13 08:58:48 +02:00
|
|
|
buildLispPackage rec {
|
|
|
|
baseName = "stumpwm";
|
|
|
|
version = "2013-09";
|
|
|
|
src = pkgs.fetchgit {
|
|
|
|
url = "https://github.com/sabetts/stumpwm";
|
|
|
|
sha256 = "0dd69myssfn2bsdx3xdp65mjrvs9x81dl3y3659pyf1avnjlir7h";
|
|
|
|
rev = "565ef58f04f59e1667ec1da4087f1a43a32cd67f";
|
|
|
|
};
|
|
|
|
description = "Tiling window manager for X11";
|
|
|
|
deps = [cl-ppcre clx];
|
2013-10-18 18:57:24 +02:00
|
|
|
buildInputs = with pkgs; [texinfo4 autoconf which makeWrapper];
|
2013-10-13 08:58:48 +02:00
|
|
|
meta = {
|
|
|
|
maintainers = [nixLib.maintainers.raskin];
|
|
|
|
platforms = nixLib.platforms.linux;
|
|
|
|
};
|
|
|
|
overrides = x: {
|
|
|
|
preConfigure = ''
|
|
|
|
${x.deployConfigScript}
|
|
|
|
export CL_SOURCE_REGISTRY="$CL_SOURCE_REGISTRY:$PWD/"
|
2013-10-18 18:57:24 +02:00
|
|
|
./autogen.sh
|
2014-01-05 18:38:14 +01:00
|
|
|
configureFlags=" --with-lisp=$NIX_LISP --with-$NIX_LISP=$(which common-lisp.sh) --with-contrib-dir=$out/lib/common-lisp/stumpwm/contrib/"
|
2013-10-13 08:58:48 +02:00
|
|
|
'';
|
2014-01-05 18:38:14 +01:00
|
|
|
installPhase = with pkgs; x.installPhase + ''
|
2013-10-18 18:57:24 +02:00
|
|
|
make install
|
2013-10-13 08:58:48 +02:00
|
|
|
|
|
|
|
if [ "$NIX_LISP" = "sbcl" ]; then
|
|
|
|
wrapProgram "$out"/bin/stumpwm --set SBCL_HOME "${clwrapper.lisp}/lib/sbcl"
|
|
|
|
fi;
|
2014-01-05 18:38:14 +01:00
|
|
|
|
|
|
|
mv $out/lib/common-lisp/stumpwm/contrib/stumpish $out/bin/stumpish
|
|
|
|
wrapProgram "$out"/bin/stumpish --prefix PATH : "${xlibs.xprop}/bin:${coreutils}/bin:${gnugrep}/bin:${gnused}/bin:${rlwrap}/bin:${ncurses}/bin"
|
2013-10-13 08:58:48 +02:00
|
|
|
'';
|
|
|
|
postInstall = ''false'';
|
|
|
|
};
|
|
|
|
}
|