pigz: use github as a source

Current url which is provided for pigz is not accessible any longer.
Use github as a source instead
This commit is contained in:
fomichevmi 2022-04-20 19:37:42 +02:00 committed by Mikhail Fomichev
parent b9e4383b0a
commit 6a9aafbf3b

View File

@ -1,12 +1,14 @@
{ lib, stdenv, fetchurl, zlib, util-linux }:
{ lib, stdenv, fetchFromGitHub, zlib, util-linux }:
stdenv.mkDerivation rec {
pname = "pigz";
version = "2.6";
src = fetchurl {
url = "https://www.zlib.net/${pname}/${pname}-${version}.tar.gz";
sha256 = "sha256-Lu17DXRJ0dcJA/KmLNYAXSYus6jJ6YaHvIy7WAnbKn0=";
src = fetchFromGitHub {
owner = "madler";
repo = "${pname}";
rev = "refs/tags/v${version}";
sha256 = "146qkmzi199xwmmf6bllanqfyl702fm1rnad8cd5r5yyrp5ks115";
};
enableParallelBuilding = true;