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/stumpwm/default.nix
Moritz Heidkamp 5f07d275f8 Remove stumpwmContrib from top-level and fix runtime dependency on it
This patch removes the stumpwmContrib package from the top-level since
it can't sensibly be used on its own. Also, it wraps the stumpwm
executable with a dummy reference to the contrib dir to work around the
issue that the stumpwm executable doesn't reference the contrib dir
that's passed in the configure phase for some reason.
2014-10-29 15:17:06 +01:00

45 lines
1.3 KiB
Nix

{ stdenv, pkgs, fetchgit, autoconf, sbcl, lispPackages, xdpyinfo, texinfo4, makeWrapper, stumpwmContrib }:
let
tag = "0.9.8";
in
stdenv.mkDerivation rec {
name = "stumpwm-${tag}";
src = fetchgit {
url = "https://github.com/stumpwm/stumpwm";
rev = "refs/tags/${tag}";
sha256 = "0a0lwwlly4hlmb30bk6dmi6bsdsy37g4crvv1z24gixippyv1qzm";
};
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 = ''
./configure --prefix=$out --with-contrib-dir=${stumpwmContrib}/contrib
'';
installPhase = ''
make
make install
# STUMPWM_CONTRIB_DIR is not actually used. We just set it so that
# stumpwmContrib gets retained as a runtime dependency because for
# some reason $out/bin/stumpwm does not contain a reference to it.
wrapProgram $out/bin/stumpwm --set STUMPWM_CONTRIB_DIR "${stumpwmContrib}/contrib"
'';
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;
};
}