Adding dmraid

svn path=/nixpkgs/trunk/; revision=17292
This commit is contained in:
Michael Raskin 2009-09-20 08:38:30 +00:00
parent 25badc1ed7
commit 107a5ee327
4 changed files with 52 additions and 0 deletions

View File

@ -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;
};
}

View File

@ -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";
}

View File

@ -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/'';
}

View File

@ -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 {