2016-11-09 15:39:54 +00:00
|
|
|
{ stdenv, fetchFromGitLab, python2Packages, gnome2 }:
|
2016-05-18 21:57:59 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pmenu-${version}";
|
|
|
|
version = "2016-05-13";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "o9000";
|
|
|
|
repo = "pmenu";
|
|
|
|
rev = "90b722de345cff56f8ec0908a0e8a7d733c0c671";
|
|
|
|
sha256 = "15bkvadr7ab44mc8gkdqs3w14cm498mwf72w5rjm2rdh55357jjh";
|
|
|
|
};
|
|
|
|
|
2016-11-09 15:39:54 +00:00
|
|
|
nativeBuildInputs = [ python2Packages.wrapPython ];
|
2016-05-18 21:57:59 +01:00
|
|
|
|
2016-11-09 15:39:54 +00:00
|
|
|
buildInputs = [ python2Packages.pygtk gnome2.gnome_menus ];
|
2016-05-18 21:57:59 +01:00
|
|
|
|
2016-11-09 15:39:54 +00:00
|
|
|
pythonPath = [ python2Packages.pygtk ];
|
2016-05-18 21:57:59 +01:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace install.sh --replace "/usr/local" "$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/applications
|
|
|
|
./install.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapPythonPrograms
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://gitlab.com/o9000/pmenu;
|
|
|
|
description = "Start menu for Linux/BSD";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|