mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 14:41:17 +00:00
629849c449
svn path=/nixpkgs/trunk/; revision=22040
40 lines
908 B
Nix
40 lines
908 B
Nix
{ stdenv, fetchurl, kernel, aufs2 }:
|
|
|
|
let version = "20100506"; in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "aufs2-util-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://nixos.org/tarballs/aufs2-util-git-${version}.tar.bz2";
|
|
sha256 = "0ly0c3p8fjxqbk8k5rmm1a91wg8wcrvhi1lv4aawalkkk8rqbnwk";
|
|
};
|
|
|
|
buildInputs = [ aufs2 ];
|
|
|
|
makeFlags =
|
|
[ "KDIR=${kernel}/lib/modules/${kernel.version}/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 AUFS2";
|
|
homepage = http://aufs.sourceforge.net/;
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|