ustr: use fetchgit instead of fetchurl

This commit is contained in:
Sigmanificient 2024-05-10 03:48:45 +02:00
parent e759bfedc3
commit 413c50ac7b

View file

@ -1,12 +1,13 @@
{ lib, stdenv, fetchurl }: { lib, stdenv, fetchgit }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "ustr"; pname = "ustr";
version = "1.0.4"; version = "1.0.4";
src = fetchurl { src = fetchgit {
url = "http://www.and.org/ustr/${version}/${pname}-${version}.tar.bz2"; url = "http://www.and.org/ustr/ustr.git";
sha256 = "1i623ygdj7rkizj7985q9d6vj5amwg686aqb5j3ixpkqkyp6xbrx"; rev = "v${finalAttrs.version}";
hash = "sha256-pQrQy+S9fVFl8Mop4QmwEAXGiBSheQE4HgAZ4srFz64=";
}; };
# Fixes bogus warnings that failed libsemanage # Fixes bogus warnings that failed libsemanage
@ -40,4 +41,4 @@ stdenv.mkDerivation rec {
maintainers = with lib.maintainers; [ sigmanificient ]; maintainers = with lib.maintainers; [ sigmanificient ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} })