lvm2: sha256 -> hash

also add a non-mirror download url
This commit is contained in:
ajs124 2022-11-10 19:13:07 +01:00
parent 481c3f0acd
commit 3454a6b4e4
3 changed files with 8 additions and 5 deletions

View file

@ -1,4 +1,4 @@
import ./common.nix {
version = "2.02.188";
sha256 = "sha256-cQHosIFq135DkP7ZdJoJAhS6UgBhzQg0N4ceGeUMyb0=";
hash = "sha256-cQHosIFq135DkP7ZdJoJAhS6UgBhzQg0N4ceGeUMyb0=";
}

View file

@ -1,4 +1,4 @@
import ./common.nix {
version = "2.03.16";
sha256 = "sha256-5mHs4VtdiNir45pMHh2y9D4YlvAZlIu5iw4V13doB4Y=";
hash = "sha256-5mHs4VtdiNir45pMHh2y9D4YlvAZlIu5iw4V13doB4Y=";
}

View file

@ -1,4 +1,4 @@
{ version, sha256 }:
{ version, hash }:
{ lib, stdenv
, fetchpatch
@ -28,8 +28,11 @@ stdenv.mkDerivation rec {
inherit version;
src = fetchurl {
url = "https://mirrors.kernel.org/sourceware/lvm2/LVM2.${version}.tgz";
inherit sha256;
urls = [
"https://mirrors.kernel.org/sourceware/lvm2/LVM2.${version}.tgz"
"ftp://sourceware.org/pub/lvm2/LVM2.${version}.tgz"
];
inherit hash;
};
nativeBuildInputs = [ pkg-config ];