forked from mirrors/nixpkgs
aufs3-util
svn path=/nixpkgs/trunk/; revision=29535
This commit is contained in:
parent
4add420a48
commit
ed38cc3545
39
pkgs/os-specific/linux/aufs3-util/default.nix
Normal file
39
pkgs/os-specific/linux/aufs3-util/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
{ stdenv, fetchgit, kernel, aufs3 }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "aufs3-util-${aufs3.patch.version}";
|
||||||
|
|
||||||
|
src = fetchgit {
|
||||||
|
url = git://aufs.git.sourceforge.net/gitroot/aufs/aufs-util.git;
|
||||||
|
rev = aufs3.patch.utilRev;
|
||||||
|
sha256 = aufs3.patch.utilHash;
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ aufs3 ];
|
||||||
|
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -30,6 +30,7 @@ stdenv.mkDerivation {
|
||||||
cp -v usr/include/linux/aufs_type.h $out/include/linux
|
cp -v usr/include/linux/aufs_type.h $out/include/linux
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru = { inherit patch; };
|
||||||
meta = {
|
meta = {
|
||||||
description = "Another Unionfs implementation for Linux (third generation)";
|
description = "Another Unionfs implementation for Linux (third generation)";
|
||||||
homepage = http://aufs.sourceforge.net/;
|
homepage = http://aufs.sourceforge.net/;
|
||||||
|
|
|
@ -293,6 +293,8 @@ rec {
|
||||||
aufs3_0 = rec {
|
aufs3_0 = rec {
|
||||||
name = "aufs3.0";
|
name = "aufs3.0";
|
||||||
version = "3.0";
|
version = "3.0";
|
||||||
|
utilRev = "a08d17d433567c7c2586c5fc2625a714b20fe155";
|
||||||
|
utilHash = "4772c1c6a36da7bbd448057c227a9cd1856ccf72748765cf85421ab0c4e34535";
|
||||||
patch = makeAufs3StandalonePatch {
|
patch = makeAufs3StandalonePatch {
|
||||||
inherit version;
|
inherit version;
|
||||||
rev = "1067b9d8d64d23c70d905c9cd3c90a669e39c4d4";
|
rev = "1067b9d8d64d23c70d905c9cd3c90a669e39c4d4";
|
||||||
|
|
|
@ -5598,6 +5598,10 @@ let
|
||||||
|
|
||||||
aufs2_util = callPackage ../os-specific/linux/aufs2-util { };
|
aufs2_util = callPackage ../os-specific/linux/aufs2-util { };
|
||||||
|
|
||||||
|
aufs3_util = if kernel.features ? aufs3 then
|
||||||
|
callPackage ../os-specific/linux/aufs3-util { }
|
||||||
|
else null;
|
||||||
|
|
||||||
blcr = callPackage ../os-specific/linux/blcr {
|
blcr = callPackage ../os-specific/linux/blcr {
|
||||||
#libtool = libtool_1_5; # libtool 2 causes a fork bomb
|
#libtool = libtool_1_5; # libtool 2 causes a fork bomb
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue