Adding dmraid
svn path=/nixpkgs/trunk/; revision=17292
This commit is contained in:
parent
25badc1ed7
commit
107a5ee327
4 changed files with 52 additions and 0 deletions
33
pkgs/os-specific/linux/dmraid/default.nix
Normal file
33
pkgs/os-specific/linux/dmraid/default.nix
Normal 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;
|
||||
};
|
||||
}
|
9
pkgs/os-specific/linux/dmraid/src-for-default.nix
Normal file
9
pkgs/os-specific/linux/dmraid/src-for-default.nix
Normal 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";
|
||||
|
||||
|
||||
}
|
6
pkgs/os-specific/linux/dmraid/src-info-for-default.nix
Normal file
6
pkgs/os-specific/linux/dmraid/src-info-for-default.nix
Normal 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/'';
|
||||
}
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue