mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Upgrade mdadm
svn path=/nixpkgs/trunk/; revision=21792
This commit is contained in:
parent
ff03fa4511
commit
64f0f42d4f
1 changed files with 13 additions and 10 deletions
|
@ -1,20 +1,23 @@
|
|||
{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-"
|
||||
fi
|
||||
'';
|
||||
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
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Programs for managing RAID arrays under Linux";
|
||||
|
|
Loading…
Reference in a new issue