2017-05-09 19:29:05 +01:00
|
|
|
{ stdenv, fetchFromGitLab, python2Packages, gnome3 }:
|
2016-05-18 21:57:59 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pmenu-${version}";
|
2017-05-09 19:29:05 +01:00
|
|
|
version = "2017-04-10";
|
2016-05-18 21:57:59 +01:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "o9000";
|
|
|
|
repo = "pmenu";
|
2017-05-09 19:29:05 +01:00
|
|
|
rev = "87fec9ddf594f1046d03348de2bafcfa6e94cfd1";
|
|
|
|
sha256 = "0ynhml46bi5k52v7fw2pjpcac9dswkmlvh6gynvnyqjp4p153fl4";
|
2016-05-18 21:57:59 +01:00
|
|
|
};
|
|
|
|
|
2016-11-09 15:39:54 +00:00
|
|
|
nativeBuildInputs = [ python2Packages.wrapPython ];
|
2016-05-18 21:57:59 +01:00
|
|
|
|
2017-05-09 19:29:05 +01:00
|
|
|
buildInputs = [ python2Packages.pygtk gnome3.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
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/applications
|
2017-05-09 19:29:05 +01:00
|
|
|
./install.sh $out
|
2016-05-18 21:57:59 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|