2013-03-24 12:45:00 +01:00
|
|
|
{ stdenv, fetchgit, kernelDev, aufs }:
|
2011-11-08 16:05:54 +01:00
|
|
|
|
|
|
|
assert aufs != null;
|
2011-09-28 23:59:07 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2013-03-24 12:45:00 +01:00
|
|
|
name = "aufs3-util-${aufs.patch.version}-${kernelDev.version}";
|
2011-09-28 23:59:07 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = git://aufs.git.sourceforge.net/gitroot/aufs/aufs-util.git;
|
2011-11-08 16:05:54 +01:00
|
|
|
rev = aufs.patch.utilRev;
|
|
|
|
sha256 = aufs.patch.utilHash;
|
2011-09-28 23:59:07 +02:00
|
|
|
};
|
|
|
|
|
2011-11-08 16:05:54 +01:00
|
|
|
buildInputs = [ aufs ];
|
2011-09-28 23:59:07 +02:00
|
|
|
|
|
|
|
makeFlags =
|
2013-03-24 12:45:00 +01:00
|
|
|
[ "KDIR=${kernelDev}/lib/modules/${kernelDev.modDirVersion}/build"
|
2011-09-28 23:59:07 +02: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 23:16:48 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
2011-09-28 23:59:07 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|