1{ stdenv, fetchurl, devicemapper }:
2
3stdenv.mkDerivation rec {
4 name = "dmraid-1.0.0.rc16";
5
6 src = fetchurl {
7 url = "http://people.redhat.com/~heinzm/sw/dmraid/src/old/${name}.tar.bz2";
8 sha256 = "0m92971gyqp61darxbiri6a48jz3wq3gkp8r2k39320z0i6w8jgq";
9 };
10
11 patches = [ ./hardening-format.patch ];
12
13 postPatch = ''
14 sed -i 's/\[\[[^]]*\]\]/[ "''$''${n##*.}" = "so" ]/' */lib/Makefile.in
15 '';
16
17 preConfigure = "cd */";
18
19 buildInputs = [ devicemapper ];
20
21 meta = {
22 description = "Old-style RAID configuration utility";
23 longDescription = ''
24 Old RAID configuration utility (still under development, though).
25 It is fully compatible with modern kernels and mdadm recognizes
26 its volumes. May be needed for rescuing an older system or nuking
27 the metadata when reformatting.
28 '';
29 maintainers = [ stdenv.lib.maintainers.raskin ];
30 platforms = stdenv.lib.platforms.linux;
31 };
32}