2019-06-16 20:59:06 +01:00
|
|
|
{ stdenv, substituteAll, fetchFromGitHub, gnused, ncurses, xorg, rlwrap }:
|
2018-07-31 09:55:06 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2018-07-31 09:55:06 +01:00
|
|
|
pname = "stumpish";
|
|
|
|
version = "0.0.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stumpwm";
|
|
|
|
repo = "stumpwm-contrib";
|
|
|
|
rev = "9f5f06652c480159ec57d1fd8751b16f02db06dc";
|
|
|
|
sha256 = "1dxzsnir3158p8y2128s08r9ca0ywr9mcznivmhn1lycw8mg4nfl";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gnused xorg.xprop rlwrap ncurses
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./paths.patch;
|
|
|
|
sed = "${gnused}/bin/sed";
|
|
|
|
xprop = "${xorg.xprop}/bin/xprop";
|
|
|
|
rlwrap = "${rlwrap}/bin/rlwrap";
|
|
|
|
tput = "${ncurses}/bin/tput";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
cp util/stumpish/stumpish $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/stumpwm/stumpwm-contrib";
|
2018-07-31 09:55:06 +01:00
|
|
|
description = "STUMPwm Interactive SHell";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.ebzzry ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|