2007-01-10 22:47:03 +01:00
|
|
|
{stdenv, fetchurl, groff}:
|
|
|
|
|
2010-05-15 20:43:24 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mdadm-3.1.2";
|
2007-01-10 22:47:03 +01:00
|
|
|
src = fetchurl {
|
2010-05-15 20:43:24 +02:00
|
|
|
url = "mirror://kernel/linux/utils/raid/mdadm/${name}.tar.bz2";
|
|
|
|
sha256 = "0s2d2a01j8cizxqvbgd0sn5bpa1j46q8976078b3jq1q7i1ir0zz";
|
2007-01-10 22:47:03 +01:00
|
|
|
};
|
|
|
|
|
2010-03-04 15:44:35 +01:00
|
|
|
buildNativeInputs = [groff];
|
2007-01-10 22:47:03 +01:00
|
|
|
|
2010-05-15 20:43:24 +02:00
|
|
|
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
|
|
|
|
'';
|
2007-01-10 22:47:03 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Programs for managing RAID arrays under Linux";
|
|
|
|
};
|
|
|
|
}
|