From c22b718a289a13e658342fc8805a5b8406e8216e Mon Sep 17 00:00:00 2001 From: AndersonTorres Date: Sun, 7 Feb 2021 20:51:51 -0300 Subject: [PATCH] openbox-menu: cosmetic changes --- .../{with-svg.patch => 000-enable-svg.patch} | 0 .../misc/openbox-menu/default.nix | 22 +++++++++++++------ 2 files changed, 15 insertions(+), 7 deletions(-) rename pkgs/applications/misc/openbox-menu/{with-svg.patch => 000-enable-svg.patch} (100%) diff --git a/pkgs/applications/misc/openbox-menu/with-svg.patch b/pkgs/applications/misc/openbox-menu/000-enable-svg.patch similarity index 100% rename from pkgs/applications/misc/openbox-menu/with-svg.patch rename to 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 9d2695f97ff..71c7903dfe2 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; }; }