nixpkgs/pkgs/os-specific/linux/mdadm/default.nix
Lluís Batlle i Rossell 27b8b6cc66 Made mdadm cross build.
svn path=/nixpkgs/trunk/; revision=20380
2010-03-04 14:44:35 +00:00

23 lines
525 B
Nix

{stdenv, fetchurl, groff}:
stdenv.mkDerivation {
name = "mdadm-2.6";
src = fetchurl {
url = http://www.cse.unsw.edu.au/~neilb/source/mdadm/mdadm-2.6.tgz;
md5 = "15019078eacc8c21eac7b0b7faf86129";
};
buildNativeInputs = [groff];
preBuild = ''
makeFlags="INSTALL=install BINDIR=$out/sbin MANDIR=$out/share/man"
if [ -n "$crossConfig" ]; then
makeFlags="$makeFlags CROSS_COMPILE=$crossConfig-"
fi
'';
meta = {
description = "Programs for managing RAID arrays under Linux";
};
}