lvm2: fetch sources from http instead of git

Otherwise, we end up in a dependency cycle:

systemd -> cryptsetup -> lvm -> fetchgit -> git -> openssh -> libfido2 -> hidapi -> libusb -> udev=systemd
This commit is contained in:
Florian Klink 2020-04-30 16:45:17 +02:00
parent 33030f1bd2
commit fbe7027251
1 changed files with 4 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ stdenv { stdenv
, fetchgit
, fetchpatch , fetchpatch
, fetchurl
, pkgconfig , pkgconfig
, utillinux , utillinux
, libuuid , libuuid
@ -17,10 +17,9 @@ in
pname = "lvm2" + stdenv.lib.optionalString enable_dmeventd "with-dmeventd"; pname = "lvm2" + stdenv.lib.optionalString enable_dmeventd "with-dmeventd";
inherit version; inherit version;
src = fetchgit { src = fetchurl {
url = "git://sourceware.org/git/lvm2.git"; url = "https://mirrors.kernel.org/sourceware/lvm2/LVM2.${version}.tgz";
rev = "v${builtins.replaceStrings [ "." ] [ "_" ] version}"; sha256 = "02sk6p8w3f6fpm1mrsisqfc0jnah4pzimyhm0f7c0phrfjq5hkj2";
sha256 = "0jlaswf1srdxiqpgpp97j950ddjds8z0kr4pbwmal2za2blrgvbl";
}; };
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];