1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00
nixpkgs/pkgs/os-specific/linux/aufs/default.nix
Eelco Dolstra 2773c38d33 * Updated AUFS to the final revision of the aufs1 codeline. This
seems to work fine on Linux 2.6.28.

svn path=/nixpkgs/trunk/; revision=15060
2009-04-15 10:12:51 +00:00

37 lines
928 B
Nix

{stdenv, fetchurl, kernel}:
stdenv.mkDerivation {
name = "aufs-20090414-${kernel.version}";
src = fetchurl {
url = http://nixos.org/tarballs/aufs-20090414.tar.bz2;
sha256 = "1jhf3kccx0m84frlgx2d0ysn1c4272dgci59dsk7vsfrf7yik526";
};
buildPhase = ''
kernelVersion=$(cd ${kernel}/lib/modules && ls)
kernelBuild=$(echo ${kernel}/lib/modules/$kernelVersion/source)
tar xvfj ${kernel.src}
kernelSource=$(echo $(pwd)/linux-*)
cp -prd $kernelBuild/* $kernelSource
make KDIR=$kernelSource -f local.mk
'';
installPhase = ''
ensureDir $out/bin
cp util/aulchown $out/bin
ensureDir $out/share/man/man5
cp util/aufs.5 $out/share/man/man5
ensureDir $out/lib/modules/$kernelVersion/misc
cp aufs.ko $out/lib/modules/$kernelVersion/misc
'';
meta = {
description = "Another Unionfs implementation for Linux";
homepage = http://aufs.sourceforge.net/;
};
}