2021-02-07 23:51:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, gtk2
|
|
|
|
, menu-cache
|
|
|
|
}:
|
2014-09-15 11:34:16 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "openbox-menu";
|
2016-03-04 15:42:28 +00:00
|
|
|
version = "0.8.0";
|
2014-09-15 11:34:16 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://bitbucket.org/fabriceT/openbox-menu/downloads/${pname}-${version}.tar.bz2";
|
2016-03-04 15:42:28 +00:00
|
|
|
sha256 = "1hi4b6mq97y6ajq4hhsikbkk23aha7ikaahm92djw48mgj2f1w8l";
|
2014-09-15 11:34:16 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 21:26:13 +00:00
|
|
|
buildInputs = [ glib gtk2 menu-cache ];
|
2014-09-15 11:34:16 +00:00
|
|
|
|
2021-02-07 23:51:51 +00:00
|
|
|
# Enables SVG support by uncommenting the Makefile
|
|
|
|
patches = [ ./000-enable-svg.patch ];
|
2014-09-15 11:34:16 +00:00
|
|
|
|
2021-05-18 08:53:39 +00:00
|
|
|
# The strip options are not recognized by Darwin.
|
|
|
|
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
|
|
|
sed -i -e '/strip -s/d' Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
|
|
|
|
2021-02-07 23:51:51 +00:00
|
|
|
installFlags = [ "prefix=${placeholder "out"}" ];
|
2014-09-15 11:34:16 +00:00
|
|
|
|
2021-02-07 23:51:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://fabrice.thiroux.free.fr/openbox-menu_en.html";
|
2014-09-15 11:34:16 +00:00
|
|
|
description = "Dynamic XDG menu generator for Openbox";
|
2016-03-04 15:42:28 +00:00
|
|
|
longDescription = ''
|
|
|
|
Openbox-menu is a pipemenu for Openbox window manager. It provides a
|
|
|
|
dynamic menu listing installed applications. Most of the work is done by
|
|
|
|
the LXDE library menu-cache.
|
|
|
|
'';
|
2021-02-07 23:51:51 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
platforms = platforms.unix;
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "openbox-menu";
|
2014-09-15 11:34:16 +00:00
|
|
|
};
|
|
|
|
}
|