From 4330cec2eed36461958c1d4ad3c04fd2ec25c083 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Thu, 22 Jun 2023 16:35:43 +0800 Subject: [PATCH] libxdg_basedir: 1.2.0 -> 1.2.3 --- .../libraries/libxdg-basedir/default.nix | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/pkgs/development/libraries/libxdg-basedir/default.nix b/pkgs/development/libraries/libxdg-basedir/default.nix index 77047e9099d..7786ec7908f 100644 --- a/pkgs/development/libraries/libxdg-basedir/default.nix +++ b/pkgs/development/libraries/libxdg-basedir/default.nix @@ -1,26 +1,29 @@ -{lib, stdenv, fetchurl, fetchpatch}: +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +}: stdenv.mkDerivation rec { pname = "libxdg-basedir"; - version = "1.2.0"; + version = "1.2.3"; - src = fetchurl { - url = "https://nevill.ch/libxdg-basedir/downloads/libxdg-basedir-${version}.tar.gz"; - sha256 = "2757a949618742d80ac59ee2f0d946adc6e71576406cdf798e6ced507708cdf4"; + src = fetchFromGitHub { + owner = "devnev"; + repo = pname; + rev = "refs/tags/libxdg-basedir-${version}"; + hash = "sha256-ewtUKDdE6k9Q9hglWwhbTU3DTxvIN41t+zf2Gch9Dkk="; }; - patches = [ - # Overflow bug - (fetchpatch { - url = "https://github.com/devnev/libxdg-basedir/commit/14e000f696ef8b83264b0ca4407669bdb365fb23.patch"; - sha256 = "0lpy1ijir0x0hhb0fz0w5vxy1wl1cw9kkd6gva0rkp41i6vrp2wq"; - }) + nativeBuildInputs = [ + autoreconfHook ]; meta = with lib; { - homepage = "https://github.com/devnev/libxdg-basedir"; description = "Implementation of the XDG Base Directory specification"; + homepage = "https://github.com/devnev/libxdg-basedir"; license = licenses.mit; + maintainers = with maintainers; [ nickcao ]; platforms = platforms.unix; }; }