From 413c50ac7b5bd386b6685045b22f85a4f61f499a Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Fri, 10 May 2024 03:48:45 +0200 Subject: [PATCH] ustr: use fetchgit instead of fetchurl --- pkgs/development/libraries/ustr/default.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/development/libraries/ustr/default.nix b/pkgs/development/libraries/ustr/default.nix index 1d56bed8ec8b..69d74046d789 100644 --- a/pkgs/development/libraries/ustr/default.nix +++ b/pkgs/development/libraries/ustr/default.nix @@ -1,12 +1,13 @@ -{ lib, stdenv, fetchurl }: +{ lib, stdenv, fetchgit }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "ustr"; version = "1.0.4"; - src = fetchurl { - url = "http://www.and.org/ustr/${version}/${pname}-${version}.tar.bz2"; - sha256 = "1i623ygdj7rkizj7985q9d6vj5amwg686aqb5j3ixpkqkyp6xbrx"; + src = fetchgit { + url = "http://www.and.org/ustr/ustr.git"; + rev = "v${finalAttrs.version}"; + hash = "sha256-pQrQy+S9fVFl8Mop4QmwEAXGiBSheQE4HgAZ4srFz64="; }; # Fixes bogus warnings that failed libsemanage @@ -40,4 +41,4 @@ stdenv.mkDerivation rec { maintainers = with lib.maintainers; [ sigmanificient ]; platforms = platforms.linux; }; -} +})