2013-03-24 12:45:00 +01:00
|
|
|
{ stdenv, fetchurl, kernelDev, aufs }:
|
2011-11-08 16:05:54 +01:00
|
|
|
|
|
|
|
assert aufs != null;
|
2010-05-28 09:09:15 +02:00
|
|
|
|
|
|
|
let version = "20100506"; in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2013-03-24 12:45:00 +01:00
|
|
|
name = "aufs2-util-${version}-${kernelDev.version}";
|
2010-05-28 09:09:15 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://nixos.org/tarballs/aufs2-util-git-${version}.tar.bz2";
|
|
|
|
sha256 = "0ly0c3p8fjxqbk8k5rmm1a91wg8wcrvhi1lv4aawalkkk8rqbnwk";
|
|
|
|
};
|
|
|
|
|
2011-11-08 16:05:54 +01:00
|
|
|
buildInputs = [ aufs ];
|
2010-05-28 09:09:15 +02:00
|
|
|
|
|
|
|
makeFlags =
|
2013-03-24 12:45:00 +01:00
|
|
|
[ "KDIR=${kernelDev}/lib/modules/${kernelDev.version}/build"
|
2010-05-28 09:09:15 +02:00
|
|
|
"Install=install"
|
|
|
|
"DESTDIR=$(out)"
|
2009-09-15 09:58:44 +02:00
|
|
|
];
|
2010-05-28 09:09:15 +02:00
|
|
|
|
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
mv $out/usr/* $out
|
|
|
|
rmdir $out/usr
|
|
|
|
|
|
|
|
cp aufs.shlib $out/lib/
|
|
|
|
|
|
|
|
substituteInPlace $out/bin/aubrsync \
|
|
|
|
--replace /sbin/mount $out/sbin/mount \
|
|
|
|
--replace /usr/lib/aufs.shlib $out/lib/aufs.shlib
|
|
|
|
'';
|
|
|
|
|
2009-09-15 09:58:44 +02:00
|
|
|
meta = {
|
2010-05-28 09:09:15 +02:00
|
|
|
description = "Utilities for AUFS2";
|
|
|
|
homepage = http://aufs.sourceforge.net/;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-09-15 09:58:44 +02:00
|
|
|
};
|
|
|
|
}
|