diff --git a/pkgs/os-specific/linux/lvm2/default.nix b/pkgs/os-specific/linux/lvm2/default.nix index 096eefe8a68f..a33431f0f581 100644 --- a/pkgs/os-specific/linux/lvm2/default.nix +++ b/pkgs/os-specific/linux/lvm2/default.nix @@ -1,16 +1,18 @@ -{ stdenv, fetchurl, fetchpatch, pkgconfig, systemd, udev, utillinux, libuuid -, thin-provisioning-tools, enable_dmeventd ? false }: +{ stdenv, fetchgit, fetchpatch, pkgconfig, systemd, udev, utillinux, libuuid +, thin-provisioning-tools, libaio +, enable_dmeventd ? false }: let - version = "2.02.177"; + version = "2.03.01"; in stdenv.mkDerivation { name = "lvm2-${version}"; - src = fetchurl { - url = "ftp://sources.redhat.com/pub/lvm2/releases/LVM2.${version}.tgz"; - sha256 = "1wl0isn0yz5wvglwylnlqkppafwmvhliq5bd92vjqp5ir4za49a0"; + src = fetchgit { + url = "git://sourceware.org/git/lvm2.git"; + rev = "v${builtins.replaceStrings [ "." ] [ "_" ] version}"; + sha256 = "0jlaswf1srdxiqpgpp97j950ddjds8z0kr4pbwmal2za2blrgvbl"; }; configureFlags = [ @@ -27,7 +29,7 @@ stdenv.mkDerivation { ]; nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ udev libuuid thin-provisioning-tools ]; + buildInputs = [ udev libuuid thin-provisioning-tools libaio ]; preConfigure = ''