2010-05-28 09:09:15 +02:00
|
|
|
{ stdenv, fetchurl, kernel, perl }:
|
2009-09-08 11:35:21 +02:00
|
|
|
|
2010-05-28 11:29:39 +02:00
|
|
|
assert kernel.features ? aufsBase;
|
|
|
|
|
2010-05-28 09:09:15 +02:00
|
|
|
let version = "20100522"; in
|
2009-09-08 11:35:21 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2010-05-28 09:09:15 +02:00
|
|
|
name = "aufs2-${version}";
|
2009-09-08 11:35:21 +02:00
|
|
|
|
2010-05-28 09:09:15 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://nixos.org/tarballs/aufs2-standalone-git-${version}.tar.bz2";
|
|
|
|
sha256 = "1g4mw4qx2xzpygdwjiw36bkhfz1hi7wxx7w79n2h0lr5grzzdnd6";
|
2009-09-08 11:35:21 +02:00
|
|
|
};
|
|
|
|
|
2009-09-13 12:25:58 +02:00
|
|
|
buildInputs = [ perl ];
|
|
|
|
|
2010-05-28 09:09:15 +02:00
|
|
|
makeFlags = "KDIR=${kernel}/lib/modules/${kernel.version}/build";
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
ensureDir $out/lib/modules/${kernel.version}/misc
|
|
|
|
cp aufs.ko $out/lib/modules/${kernel.version}/misc
|
|
|
|
|
|
|
|
# Install the headers because aufs2-util requires them.
|
|
|
|
cp -prvd include $out/
|
|
|
|
'';
|
2009-09-08 11:35:21 +02:00
|
|
|
|
|
|
|
meta = {
|
2010-05-28 09:09:15 +02:00
|
|
|
description = "Another Unionfs implementation for Linux (second generation)";
|
2009-09-08 11:35:21 +02:00
|
|
|
homepage = http://aufs.sourceforge.net/;
|
2010-05-28 09:09:15 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-09-08 11:35:21 +02:00
|
|
|
};
|
|
|
|
}
|