diff --git a/pkgs/os-specific/linux/dmraid/default.nix b/pkgs/os-specific/linux/dmraid/default.nix new file mode 100644 index 000000000000..aa78a5171964 --- /dev/null +++ b/pkgs/os-specific/linux/dmraid/default.nix @@ -0,0 +1,33 @@ +a : +let + s = import ./src-for-default.nix; + buildInputs = with a; [ + devicemapper + ]; +in +rec { + src = a.fetchUrlFromSrcInfo s; + + inherit (s) name; + inherit buildInputs; + configureFlags = []; + + /* doConfigure should be removed if not needed */ + phaseNames = ["doConfigure" "doMakeInstall"]; + goSrcDir = "cd */"; + + 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 = [ + a.lib.maintainers.raskin + ]; + platforms = with a.lib.platforms; + linux; + }; +} diff --git a/pkgs/os-specific/linux/dmraid/src-for-default.nix b/pkgs/os-specific/linux/dmraid/src-for-default.nix new file mode 100644 index 000000000000..b8f29ce4b5c5 --- /dev/null +++ b/pkgs/os-specific/linux/dmraid/src-for-default.nix @@ -0,0 +1,9 @@ +rec { + version="1.0.0.rc15"; + name="dmraid-1.0.0.rc15"; + hash="01bcaq0sc329ghgj7f182xws7jgjpdc41bvris8fsiprnxc7511h"; + url="http://people.redhat.com/~heinzm/sw/dmraid/src/old/dmraid-${version}.tar.bz2"; + advertisedUrl="http://people.redhat.com/~heinzm/sw/dmraid/src/old/dmraid-1.0.0.rc15.tar.bz2"; + + +} diff --git a/pkgs/os-specific/linux/dmraid/src-info-for-default.nix b/pkgs/os-specific/linux/dmraid/src-info-for-default.nix new file mode 100644 index 000000000000..12c4ab1e9a7d --- /dev/null +++ b/pkgs/os-specific/linux/dmraid/src-info-for-default.nix @@ -0,0 +1,6 @@ +{ + downloadPage = "http://people.redhat.com/~heinzm/sw/dmraid/src/old/?C=M;O=D"; + baseName = "dmraid"; + sourceRegexp = "^.*[.]tar[.]bz2\$"; + versionExtractorSedScript = ''s/.*-(.*)[.]tar[.]bz2/\1/''; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 266533bc2d58..845bf9210d24 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4926,6 +4926,10 @@ let stdenv = if stdenv.system == "powerpc-linux" then overrideGCC stdenv gcc34 else stdenv; }; + dmraid = builderDefsPackage ../os-specific/linux/dmraid { + inherit devicemapper; + }; + libuuid = utillinuxng; e2fsprogs = import ../os-specific/linux/e2fsprogs/1.41.8.nix {