diff options
author | Donovan Glover <donovan@dglover.co> | 2024-03-13 05:22:38 -0400 |
---|---|---|
committer | Donovan Glover <donovan@dglover.co> | 2024-03-13 05:22:38 -0400 |
commit | 3b44930cddfa74cb7d25eb8d3943bc0f27e6c0e9 (patch) | |
tree | 0eab7b256f2c12dd730a555aef93e40ab3017c38 /pkgs/by-name/xd | |
parent | 532ac4f6c60cb8a5fde22ca0f54a62c603eb6ffc (diff) |
xdg-user-dirs: cleanup
Diffstat (limited to 'pkgs/by-name/xd')
-rw-r--r-- | pkgs/by-name/xd/xdg-user-dirs/package.nix | 25 |
1 files 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 be2afce19b719..da338359174a6 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; }; -} +}) |