2013-03-24 11:45:00 +00:00
|
|
|
{ stdenv, fetchgit, kernelDev, aufs }:
|
2011-11-08 15:05:54 +00:00
|
|
|
|
|
|
|
assert aufs != null;
|
2011-09-28 21:59:07 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2013-03-24 11:45:00 +00:00
|
|
|
name = "aufs3-util-${aufs.patch.version}-${kernelDev.version}";
|
2011-09-28 21:59:07 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = git://aufs.git.sourceforge.net/gitroot/aufs/aufs-util.git;
|
2011-11-08 15:05:54 +00:00
|
|
|
rev = aufs.patch.utilRev;
|
|
|
|
sha256 = aufs.patch.utilHash;
|
2011-09-28 21:59:07 +00:00
|
|
|
};
|
|
|
|
|
2011-11-08 15:05:54 +00:00
|
|
|
buildInputs = [ aufs ];
|
2011-09-28 21:59:07 +00:00
|
|
|
|
|
|
|
makeFlags =
|
2013-03-24 11:45:00 +00:00
|
|
|
[ "KDIR=${kernelDev}/lib/modules/${kernelDev.modDirVersion}/build"
|
2011-09-28 21:59:07 +00:00
|
|
|
"Install=install"
|
|
|
|
"DESTDIR=$(out)"
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Utilities for AUFS3";
|
|
|
|
homepage = http://aufs.sourceforge.net/;
|
2012-12-17 22:16:48 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
2011-09-28 21:59:07 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|