mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 08:31:59 +00:00
172c52f9e9
directory. svn path=/nixpkgs/trunk/; revision=30324
42 lines
975 B
Nix
42 lines
975 B
Nix
{ stdenv, fetchgit, kernel, aufs }:
|
|
|
|
assert aufs != null;
|
|
|
|
stdenv.mkDerivation {
|
|
name = "aufs3-util-${aufs.patch.version}-${kernel.version}";
|
|
|
|
src = fetchgit {
|
|
url = git://aufs.git.sourceforge.net/gitroot/aufs/aufs-util.git;
|
|
rev = aufs.patch.utilRev;
|
|
sha256 = aufs.patch.utilHash;
|
|
};
|
|
|
|
buildInputs = [ aufs ];
|
|
|
|
makeFlags =
|
|
[ "KDIR=${kernel}/lib/modules/${kernel.modDirVersion}/build"
|
|
"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/;
|
|
maintainers = [ stdenv.lib.maintainers.eelco
|
|
stdenv.lib.maintainers.shlevy ];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|