Merge pull request #4387 from 1126/refactor-stumpwm

stumpwm: update and refactoring
This commit is contained in:
Michael Raskin
2014-10-13 17:50:46 +04:00
7 changed files with 106 additions and 40 deletions
@@ -0,0 +1,31 @@
{ stdenv, fetchgit }:
let
tag = "0.9.8";
in
stdenv.mkDerivation rec {
name = "stumpwmContrib-${tag}";
src = fetchgit {
url = "https://github.com/stumpwm/stumpwm";
rev = "refs/tags/${tag}";
sha256 = "0a0lwwlly4hlmb30bk6dmi6bsdsy37g4crvv1z24gixippyv1qzm";
};
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
mkdir -p $out/bin
cp -a $src/contrib $out/
cp -a $src/contrib/stumpish $out/bin
'';
meta = with stdenv.lib; {
description = "Extension modules for the StumpWM";
homepage = https://github.com/stumpwm/;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ _1126 ];
platforms = platforms.linux;
};
}
@@ -0,0 +1,41 @@
{ 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=${pkgs.stumpwmContrib}/contrib
'';
installPhase = ''
make
make install
'';
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;
};
}