3
0
Fork 0
forked from mirrors/nixpkgs

Upgrade mdadm

svn path=/nixpkgs/trunk/; revision=21792
This commit is contained in:
Yury G. Kudryashov 2010-05-15 18:43:24 +00:00
parent ff03fa4511
commit 64f0f42d4f

View file

@ -1,18 +1,21 @@
{stdenv, fetchurl, groff}:
stdenv.mkDerivation {
name = "mdadm-2.6";
stdenv.mkDerivation rec {
name = "mdadm-3.1.2";
src = fetchurl {
url = http://www.cse.unsw.edu.au/~neilb/source/mdadm/mdadm-2.6.tgz;
md5 = "15019078eacc8c21eac7b0b7faf86129";
url = "mirror://kernel/linux/utils/raid/mdadm/${name}.tar.bz2";
sha256 = "0s2d2a01j8cizxqvbgd0sn5bpa1j46q8976078b3jq1q7i1ir0zz";
};
buildNativeInputs = [groff];
preBuild = ''
makeFlags="INSTALL=install BINDIR=$out/sbin MANDIR=$out/share/man"
if [ -n "$crossConfig" ]; then
makeFlags="$makeFlags CROSS_COMPILE=$crossConfig-"
patchPhase = "sed -e 's@/lib/udev@\${out}/lib/udev@' -i Makefile";
preBuild =
''
makeFlagsArray=(INSTALL=install BINDIR=$out/sbin MANDIR=$out/share/man)
if [[ -n "$crossConfig" ]]; then
makeFlagsArray+=(CROSS_COMPILE=$crossConfig-)
fi
'';