2014-10-05 14:50:08 +02:00
|
|
|
{ stdenv, pkgs, fetchgit, autoconf, sbcl, lispPackages, xdpyinfo, texinfo4, makeWrapper, stumpwmContrib }:
|
|
|
|
|
|
|
|
let
|
2015-01-12 00:11:04 +01:00
|
|
|
tag = "0.9.9";
|
2014-10-05 14:50:08 +02:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "stumpwm-${tag}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/stumpwm/stumpwm";
|
|
|
|
rev = "refs/tags/${tag}";
|
2015-01-12 00:11:04 +01:00
|
|
|
sha256 = "05fkng2wlmhy3kb9zhrrv9zpa16g2p91p5y0wvmwkppy04cw04ps";
|
2014-10-05 14:50:08 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ texinfo4 autoconf lispPackages.clx lispPackages.cl-ppcre sbcl makeWrapper stumpwmContrib ];
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "preConfigurePhase" "configurePhase" "installPhase" ];
|
|
|
|
|
|
|
|
preConfigurePhase = ''
|
|
|
|
$src/autogen.sh
|
|
|
|
mkdir -pv $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
configurePhase = ''
|
2014-10-29 01:28:25 +01:00
|
|
|
./configure --prefix=$out --with-contrib-dir=${stumpwmContrib}/contrib
|
2014-10-05 14:50:08 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make
|
|
|
|
make install
|
2014-10-29 14:11:45 +01:00
|
|
|
# For some reason, stumpwmContrib is not retained as a runtime
|
|
|
|
# dependency (probably because $out/bin/stumpwm is compressed or
|
|
|
|
# obfuscated in some way). Thus we add an explicit reference here.
|
|
|
|
mkdir $out/nix-support
|
|
|
|
echo ${stumpwmContrib} > $out/nix-support/stumpwm-contrib
|
2014-10-05 14:50:08 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A tiling window manager for X11";
|
|
|
|
homepage = https://github.com/stumpwm/;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ _1126 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2015-01-12 00:11:04 +01:00
|
|
|
}
|