about summary refs log tree commit diff
path: root/pkgs/applications/misc/openbox-menu
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2021-02-07 20:51:51 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2021-02-07 20:51:51 -0300
commitc22b718a289a13e658342fc8805a5b8406e8216e (patch)
treec8af333f59f84bdc46f2da21781482f8c986f51d /pkgs/applications/misc/openbox-menu
parent5132690c5072d1ea021d166bd2925053ab612d36 (diff)
openbox-menu: cosmetic changes
Diffstat (limited to 'pkgs/applications/misc/openbox-menu')
-rw-r--r--pkgs/applications/misc/openbox-menu/000-enable-svg.patch (renamed from pkgs/applications/misc/openbox-menu/with-svg.patch)0
-rw-r--r--pkgs/applications/misc/openbox-menu/default.nix22
2 files changed, 15 insertions, 7 deletions
diff --git a/pkgs/applications/misc/openbox-menu/with-svg.patch b/pkgs/applications/misc/openbox-menu/000-enable-svg.patch
index dd6710f5cfc9f..dd6710f5cfc9f 100644
--- a/pkgs/applications/misc/openbox-menu/with-svg.patch
+++ b/pkgs/applications/misc/openbox-menu/000-enable-svg.patch
diff --git a/pkgs/applications/misc/openbox-menu/default.nix b/pkgs/applications/misc/openbox-menu/default.nix
index 9d2695f97fffb..71c7903dfe221 100644
--- a/pkgs/applications/misc/openbox-menu/default.nix
+++ b/pkgs/applications/misc/openbox-menu/default.nix
@@ -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 {
   pname = "openbox-menu";
@@ -12,11 +19,12 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [ pkg-config ];
   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";
     description = "Dynamic XDG menu generator for Openbox";
     longDescription = ''
@@ -24,8 +32,8 @@ stdenv.mkDerivation rec {
       dynamic menu listing installed applications. Most of the work is done by
       the LXDE library menu-cache.
     '';
-    license = lib.licenses.gpl3;
-    maintainers = [ lib.maintainers.romildo ];
-    platforms   = lib.platforms.unix;
+    license = licenses.gpl3Plus;
+    maintainers = [ maintainers.romildo ];
+    platforms   = platforms.unix;
   };
 }