nixpkgs/pkgs/os-specific/linux/mdadm/default.nix
aszlig 8664aea63d
Revert "mdadm: 3.3 -> 3.3.2".
This reverts commit 7719f7f23b, again!

It prevents systems from booting, for two reasons:

  * The initrd size is going to explode, but I think this is not the
    REAL issue. We had that in 666cf99 already, which reverted this
    update already.
  * Another reason I don't yet know, which is the REAL issue. We need to
    investigate and fix that before attempting another update.

Because of that I've also added a small comment before the src attribute
to prevent further updates like this.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2015-04-01 17:59:09 +02:00

38 lines
1.3 KiB
Nix

{ stdenv, fetchurl, groff }:
stdenv.mkDerivation rec {
name = "mdadm-3.3";
# WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING
# Do NOT update this if you're not ABSOLUTELY certain that it will work.
# Please check the update using the NixOS VM test, BEFORE pushing:
# nix-build nixos/release.nix -A tests.installer.swraid.x86_64-linux
# Discussion:
# https://github.com/NixOS/nixpkgs/commit/7719f7f
# https://github.com/NixOS/nixpkgs/commit/666cf99
# https://github.com/NixOS/nixpkgs/pull/6006
# WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING
src = fetchurl {
url = "mirror://kernel/linux/utils/raid/mdadm/${name}.tar.bz2";
sha256 = "0igdqflihiq1dp5qlypzw0xfl44f4n3bckl7r2x2wfgkplcfa1ww";
};
nativeBuildInputs = [ groff ];
preConfigure = "sed -e 's@/lib/udev@\${out}/lib/udev@' -e 's@ -Werror @ @' -i Makefile";
# Force mdadm to use /var/run/mdadm.map for its map file (or
# /dev/.mdadm/map as a fallback).
preBuild =
''
makeFlagsArray=(INSTALL=install BINDIR=$out/sbin MANDIR=$out/share/man RUN_DIR=/dev/.mdadm)
if [[ -n "$crossConfig" ]]; then
makeFlagsArray+=(CROSS_COMPILE=$crossConfig-)
fi
'';
meta = {
description = "Programs for managing RAID arrays under Linux";
homepage = http://neil.brown.name/blog/mdadm;
};
}