From fbe70272514d3d9ab8bb251666939b98d10ac852 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 30 Apr 2020 16:45:17 +0200 Subject: [PATCH] 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 --- pkgs/os-specific/linux/lvm2/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/os-specific/linux/lvm2/default.nix b/pkgs/os-specific/linux/lvm2/default.nix index a068de6a81d..9dae5158e1f 100644 --- a/pkgs/os-specific/linux/lvm2/default.nix +++ b/pkgs/os-specific/linux/lvm2/default.nix @@ -1,6 +1,6 @@ { stdenv -, fetchgit , fetchpatch +, fetchurl , pkgconfig , utillinux , libuuid @@ -17,10 +17,9 @@ in pname = "lvm2" + stdenv.lib.optionalString enable_dmeventd "with-dmeventd"; inherit version; - src = fetchgit { - url = "git://sourceware.org/git/lvm2.git"; - rev = "v${builtins.replaceStrings [ "." ] [ "_" ] version}"; - sha256 = "0jlaswf1srdxiqpgpp97j950ddjds8z0kr4pbwmal2za2blrgvbl"; + src = fetchurl { + url = "https://mirrors.kernel.org/sourceware/lvm2/LVM2.${version}.tgz"; + sha256 = "02sk6p8w3f6fpm1mrsisqfc0jnah4pzimyhm0f7c0phrfjq5hkj2"; }; nativeBuildInputs = [ pkgconfig ];