ldm: Use meta.repositories.git.

Improves reliability of nixpkgs-monitor.
This commit is contained in:
Moritz Ulrich 2014-03-04 12:44:15 +01:00
parent bd2d120c08
commit 5d05dde655

View File

@ -3,17 +3,18 @@
assert mountPath != ""; assert mountPath != "";
let let
name = "ldm-0.4.2"; version = "v0.4.2";
git = https://github.com/LemonBoy/ldm.git;
in in
stdenv.mkDerivation { stdenv.mkDerivation rec {
inherit name; name = "ldm-${version}";
# There is a stable release, but we'll use the lvm branch, which # There is a stable release, but we'll use the lvm branch, which
# contains important fixes for LVM setups. # contains important fixes for LVM setups.
src = fetchgit { src = fetchgit {
url = "https://github.com/LemonBoy/ldm.git"; url = meta.repositories.git;
rev = "26633ce07b"; rev = "refs/tags/${version}";
sha256 = "bb733d3b9b3bd5843b9cf1507a04a063c5aa45b398480411709fc727ae10b8b1"; sha256 = "1fdm3l00csjyvz40py6wlsh8s441rbp4az3sc2i14ag7srh2yim8";
}; };
buildInputs = [ udev utillinux ]; buildInputs = [ udev utillinux ];
@ -34,5 +35,6 @@ stdenv.mkDerivation {
platforms = stdenv.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.the-kenny ]; maintainers = [ stdenv.lib.maintainers.the-kenny ];
repositories.git = git;
}; };
} }