From f2a827f9c8bc8c169194cb540312384f4eb16354 Mon Sep 17 00:00:00 2001 From: emaryn Date: Fri, 6 Jun 2025 07:04:14 +0800 Subject: [PATCH] xmenu: 4.5.5 -> 4.6.1 Diff: https://github.com/phillbush/xmenu/compare/v4.5.5...v4.6.1 --- pkgs/by-name/xm/xmenu/package.nix | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/xm/xmenu/package.nix b/pkgs/by-name/xm/xmenu/package.nix index 23569e6a12c7..f18d19f31021 100644 --- a/pkgs/by-name/xm/xmenu/package.nix +++ b/pkgs/by-name/xm/xmenu/package.nix @@ -8,15 +8,15 @@ libXinerama, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "xmenu"; - version = "4.5.5"; + version = "4.6.1"; src = fetchFromGitHub { owner = "phillbush"; repo = "xmenu"; - rev = "v${version}"; - sha256 = "sha256-Gg4hSBBVBOB/wlY44C5bJOuOnLoA/tPvcNZamXae/WE="; + tag = "v${finalAttrs.version}"; + hash = "sha256-pCjL6cTH6hMzSV1L6wdMjfA2Dbf85KKCnBxmI9ibc7Y="; }; buildInputs = [ @@ -26,14 +26,18 @@ stdenv.mkDerivation rec { libXinerama ]; - postPatch = "sed -i \"s:/usr/local:$out:\" config.mk"; + makeFlags = [ + "PREFIX=${placeholder "out"}" + "LOCALINC=${placeholder "out"}/include" + "LOCALLIB=${placeholder "out"}/lib" + ]; - meta = with lib; { + meta = { description = "Menu utility for X"; homepage = "https://github.com/phillbush/xmenu"; - license = licenses.mit; - maintainers = with maintainers; [ neonfuz ]; - platforms = platforms.all; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ neonfuz ]; + platforms = lib.platforms.all; mainProgram = "xmenu"; }; -} +})