3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/aufs2-utils/default.nix
Michael Raskin 0428a7405a Fix aufs utilities for NixOS manual
svn path=/nixpkgs/trunk/; revision=17153
2009-09-15 10:28:40 +00:00

36 lines
843 B
Nix

a :
let
s = import ./src-for-default.nix;
buildInputs = with a; [
];
in
rec {
src = (a.fetchGitFromSrcInfo s) + "/";
inherit (s) name;
inherit buildInputs;
configureFlags = [];
preBuild = a.fullDepEntry (''
sed -e "s@/usr@@g; s@-o root@@g; s@-g root@@g" -i Makefile
'') ["doUnpack" "minInit"];
postInstall = a.fullDepEntry (''
sed -e "s@/etc/default@$out&@; s@/sbin/mount@$out&@" -i "$out/bin/"*
'') ["minInit"];
/* doConfigure should be removed if not needed */
phaseNames = ["preBuild" "doMakeInstall" "postInstall"];
makeFlags = [
''KDIR="${a.kernel}/lib/modules/${a.kernel.version}/build"''
''DESTDIR="$out"''
];
meta = {
description = "AUFS2 utilities";
maintainers = [
a.lib.maintainers.raskin
];
platforms = with a.lib.platforms;
linux;
};
}