mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 23:20:55 +00:00
499c51016e
The dmraid shared object file is created with a soname that contains a version. Unfortunately, the install target in the Makefile does not properly match on files ending with .so and so does not install it with the version suffix. Previously we only had a static library, which doesn't do much trouble if the version is missing, but with the dynamic library the ELF file depending on libdmraid uses the version, while the library itself isn't present with that suffix. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
31 lines
886 B
Nix
31 lines
886 B
Nix
{ stdenv, fetchurl, devicemapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "dmraid-1.0.0.rc16";
|
|
|
|
src = fetchurl {
|
|
url = "http://people.redhat.com/~heinzm/sw/dmraid/src/old/${name}.tar.bz2";
|
|
sha256 = "0m92971gyqp61darxbiri6a48jz3wq3gkp8r2k39320z0i6w8jgq";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i 's/\[\[[^]]*\]\]/[ "''$''${n##*.}" = "so" ]/' */lib/Makefile.in
|
|
'';
|
|
|
|
preConfigure = "cd */";
|
|
|
|
buildInputs = [ devicemapper ];
|
|
|
|
meta = {
|
|
description = "Old-style RAID configuration utility";
|
|
longDescritipn = ''
|
|
Old RAID configuration utility (still under development, though).
|
|
It is fully compatible with modern kernels and mdadm recognizes
|
|
its volumes. May be needed for rescuing an older system or nuking
|
|
the metadata when reformatting.
|
|
'';
|
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|