From c49ee22af904a512ca482f772b1057b686bec92b Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Wed, 13 Mar 2024 05:11:47 -0400 Subject: [PATCH 1/4] xdg-user-dirs: add myself as maintainer --- pkgs/tools/X11/xdg-user-dirs/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/X11/xdg-user-dirs/default.nix b/pkgs/tools/X11/xdg-user-dirs/default.nix index f988f3cfe975..be2afce19b71 100644 --- a/pkgs/tools/X11/xdg-user-dirs/default.nix +++ b/pkgs/tools/X11/xdg-user-dirs/default.nix @@ -23,7 +23,7 @@ stdenv.mkDerivation rec { homepage = "http://freedesktop.org/wiki/Software/xdg-user-dirs"; description = "A tool to help manage well known user directories like the desktop folder and the music folder"; license = licenses.gpl2; - maintainers = with maintainers; [ ]; + maintainers = with maintainers; [ donovanglover ]; platforms = platforms.unix; }; } From 532ac4f6c60cb8a5fde22ca0f54a62c603eb6ffc Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Wed, 13 Mar 2024 05:12:49 -0400 Subject: [PATCH 2/4] xdg-user-dirs: migrate to by-name --- .../default.nix => by-name/xd/xdg-user-dirs/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{tools/X11/xdg-user-dirs/default.nix => by-name/xd/xdg-user-dirs/package.nix} (100%) diff --git a/pkgs/tools/X11/xdg-user-dirs/default.nix b/pkgs/by-name/xd/xdg-user-dirs/package.nix similarity index 100% rename from pkgs/tools/X11/xdg-user-dirs/default.nix rename to pkgs/by-name/xd/xdg-user-dirs/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bab08f433b80..ab3de3d72503 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -36213,8 +36213,6 @@ with pkgs; xdg-desktop-portal-xapp = callPackage ../development/libraries/xdg-desktop-portal-xapp { }; - xdg-user-dirs = callPackage ../tools/X11/xdg-user-dirs { }; - xdg-utils = callPackage ../tools/X11/xdg-utils {}; xdgmenumaker = callPackage ../applications/misc/xdgmenumaker { }; From 3b44930cddfa74cb7d25eb8d3943bc0f27e6c0e9 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Wed, 13 Mar 2024 05:22:38 -0400 Subject: [PATCH 3/4] xdg-user-dirs: cleanup --- pkgs/by-name/xd/xdg-user-dirs/package.nix | 25 +++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/xd/xdg-user-dirs/package.nix b/pkgs/by-name/xd/xdg-user-dirs/package.nix index be2afce19b71..da338359174a 100644 --- a/pkgs/by-name/xd/xdg-user-dirs/package.nix +++ b/pkgs/by-name/xd/xdg-user-dirs/package.nix @@ -1,17 +1,30 @@ -{ lib, stdenv, fetchurl, libxslt, docbook_xsl, gettext, libiconv, makeWrapper }: +{ + lib, + stdenv, + fetchurl, + libxslt, + docbook_xsl, + gettext, + libiconv, + makeWrapper, +}: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "xdg-user-dirs"; version = "0.18"; src = fetchurl { - url = "https://user-dirs.freedesktop.org/releases/xdg-user-dirs-${version}.tar.gz"; - sha256 = "sha256-7G8G10lc26N6cyA5+bXhV4vLKWV2/eDaQO2y9SIg3zw="; + url = "https://user-dirs.freedesktop.org/releases/xdg-user-dirs-${finalAttrs.version}.tar.gz"; + hash = "sha256-7G8G10lc26N6cyA5+bXhV4vLKWV2/eDaQO2y9SIg3zw="; }; buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; - nativeBuildInputs = [ makeWrapper libxslt docbook_xsl ] ++ lib.optionals stdenv.isDarwin [ gettext ]; + nativeBuildInputs = [ + makeWrapper + libxslt + docbook_xsl + ] ++ lib.optionals stdenv.isDarwin [ gettext ]; preFixup = '' # fallback values need to be last @@ -26,4 +39,4 @@ stdenv.mkDerivation rec { maintainers = with maintainers; [ donovanglover ]; platforms = platforms.unix; }; -} +}) From 7da00fc793c15ffbf0a73a543edbee9ae528ec7b Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Wed, 13 Mar 2024 05:23:39 -0400 Subject: [PATCH 4/4] xdg-user-dirs: set meta.mainProgram --- pkgs/by-name/xd/xdg-user-dirs/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/xd/xdg-user-dirs/package.nix b/pkgs/by-name/xd/xdg-user-dirs/package.nix index da338359174a..f1d4e97bc7da 100644 --- a/pkgs/by-name/xd/xdg-user-dirs/package.nix +++ b/pkgs/by-name/xd/xdg-user-dirs/package.nix @@ -38,5 +38,6 @@ stdenv.mkDerivation (finalAttrs: { license = licenses.gpl2; maintainers = with maintainers; [ donovanglover ]; platforms = platforms.unix; + mainProgram = "xdg-user-dirs-update"; }; })