diff options
author | Bobby Rong <rjl931189261@126.com> | 2023-12-05 21:19:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-05 21:19:15 +0800 |
commit | 45b9d6a7c01554a3965ea9ee61ad5c03da2fbc3f (patch) | |
tree | 890be3662ba856ba301d033dcf3f2d234067b10e /pkgs/desktops | |
parent | 14458215597edf44446cad6a06b79072c12d445f (diff) | |
parent | 1bc79073dd462e32465dbb02deeb1d48ad3957c9 (diff) |
Merge pull request #270687 from bobby285271/fix/xfce4-ofborg-ping
xfce.mkXfcederivation: Fix ofborg maintainer ping
Diffstat (limited to 'pkgs/desktops')
-rw-r--r-- | pkgs/desktops/xfce/mkXfceDerivation.nix | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/pkgs/desktops/xfce/mkXfceDerivation.nix b/pkgs/desktops/xfce/mkXfceDerivation.nix index 608053fcbf550..17939e5e2058c 100644 --- a/pkgs/desktops/xfce/mkXfceDerivation.nix +++ b/pkgs/desktops/xfce/mkXfceDerivation.nix @@ -9,6 +9,8 @@ , sha256 , odd-unstable ? true , patchlevel-unstable ? true +, passthru ? { } +, meta ? { } , ... } @ args: @@ -22,9 +24,7 @@ let concatAttrLists = attrsets: zipAttrsWithNames (filterAttrNames isList (head attrsets)) (_: concatLists) attrsets; - template = rec { - inherit pname version; - + template = { nativeBuildInputs = [ pkg-config xfce4-dev-tools wrapGAppsHook ]; buildInputs = [ hicolor-icon-theme ]; configureFlags = [ "--enable-maintainer-mode" ]; @@ -41,19 +41,21 @@ let pos = builtins.unsafeGetAttrPos "pname" args; - passthru.updateScript = gitUpdater { - inherit rev-prefix odd-unstable patchlevel-unstable; - }; + passthru = { + updateScript = gitUpdater { + inherit rev-prefix odd-unstable patchlevel-unstable; + }; + } // passthru; meta = with lib; { homepage = "https://gitlab.xfce.org/${category}/${pname}"; license = licenses.gpl2Plus; # some libraries are under LGPLv2+ platforms = platforms.linux; - }; + } // meta; }; - publicArgs = removeAttrs args [ "category" "pname" "sha256" ]; + publicArgs = removeAttrs args [ "category" "sha256" ]; in -stdenv.mkDerivation (recursiveUpdate template publicArgs // concatAttrLists [ template args ]) +stdenv.mkDerivation (publicArgs // template // concatAttrLists [ template args ]) # TODO [ AndersonTorres ]: verify if it allows using hash attribute as an option to sha256 |