nixpkgs/pkgs/os-specific/linux/mdadm/default.nix

23 lines
525 B
Nix
Raw Normal View History

{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";
};
}