commit
69aed000b6
@ -60,7 +60,7 @@ stdenv.mkDerivation rec {
|
|||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/johanmalm/jgmenu";
|
homepage = "https://github.com/johanmalm/jgmenu";
|
||||||
description = "Small X11 menu intended to be used with openbox and tint2";
|
description = "Small X11 menu intended to be used with openbox and tint2";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = [ maintainers.romildo ];
|
maintainers = [ maintainers.romildo ];
|
||||||
};
|
};
|
||||||
|
@ -1,4 +1,11 @@
|
|||||||
{ lib, stdenv, fetchurl, pkg-config, glib, gtk2, menu-cache }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
, pkg-config
|
||||||
|
, glib
|
||||||
|
, gtk2
|
||||||
|
, menu-cache
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "openbox-menu";
|
pname = "openbox-menu";
|
||||||
@ -12,11 +19,12 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ glib gtk2 menu-cache ];
|
buildInputs = [ glib gtk2 menu-cache ];
|
||||||
|
|
||||||
patches = [ ./with-svg.patch ];
|
# Enables SVG support by uncommenting the Makefile
|
||||||
|
patches = [ ./000-enable-svg.patch ];
|
||||||
|
|
||||||
installPhase = "make install prefix=$out";
|
installFlags = [ "prefix=${placeholder "out"}" ];
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
homepage = "http://fabrice.thiroux.free.fr/openbox-menu_en.html";
|
homepage = "http://fabrice.thiroux.free.fr/openbox-menu_en.html";
|
||||||
description = "Dynamic XDG menu generator for Openbox";
|
description = "Dynamic XDG menu generator for Openbox";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
@ -24,8 +32,8 @@ stdenv.mkDerivation rec {
|
|||||||
dynamic menu listing installed applications. Most of the work is done by
|
dynamic menu listing installed applications. Most of the work is done by
|
||||||
the LXDE library menu-cache.
|
the LXDE library menu-cache.
|
||||||
'';
|
'';
|
||||||
license = lib.licenses.gpl3;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = [ lib.maintainers.romildo ];
|
maintainers = [ maintainers.romildo ];
|
||||||
platforms = lib.platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,14 +1,23 @@
|
|||||||
{ lib, stdenv, fetchurl, glib, intltool, menu-cache, pango, pkg-config, vala
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
, glib
|
||||||
|
, intltool
|
||||||
|
, menu-cache
|
||||||
|
, pango
|
||||||
|
, pkg-config
|
||||||
|
, vala
|
||||||
, extraOnly ? false
|
, extraOnly ? false
|
||||||
, withGtk3 ? false, gtk2, gtk3 }:
|
, withGtk3 ? true , gtk3, gtk2
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
gtk = if withGtk3 then gtk3 else gtk2;
|
gtk = if withGtk3 then gtk3 else gtk2;
|
||||||
inherit (lib) optional;
|
inherit (lib) optional;
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = if extraOnly
|
pname = if extraOnly
|
||||||
then "libfm-extra-${version}"
|
then "libfm-extra"
|
||||||
else "libfm-${version}";
|
else "libfm";
|
||||||
version = "1.3.2";
|
version = "1.3.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
@ -17,16 +26,14 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ vala pkg-config intltool ];
|
nativeBuildInputs = [ vala pkg-config intltool ];
|
||||||
buildInputs = [ glib gtk pango ] ++ optional (!extraOnly) menu-cache;
|
buildInputs = [ glib gtk pango ]
|
||||||
|
++ optional (!extraOnly) menu-cache;
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [ "--sysconfdir=/etc" ]
|
||||||
"--sysconfdir=/etc"
|
++ optional extraOnly "--with-extra-only"
|
||||||
] ++ optional extraOnly "--with-extra-only"
|
++ optional withGtk3 "--with-gtk=3";
|
||||||
++ optional withGtk3 "--with-gtk=3";
|
|
||||||
|
|
||||||
installFlags = [
|
installFlags = [ "sysconfdir=${placeholder "out"}/etc" ];
|
||||||
"sysconfdir=${placeholder "out"}/etc"
|
|
||||||
];
|
|
||||||
|
|
||||||
# libfm-extra is pulled in by menu-cache and thus leads to a collision for libfm
|
# libfm-extra is pulled in by menu-cache and thus leads to a collision for libfm
|
||||||
postInstall = optional (!extraOnly) ''
|
postInstall = optional (!extraOnly) ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user