nixpkgs/pkgs/os-specific/linux/util-linux/default.nix
Eelco Dolstra 32cb4c8a54 * Hack to get static util-linux builds to work.
svn path=/nixpkgs/trunk/; revision=6917
2006-10-31 16:21:24 +00:00

21 lines
572 B
Nix

{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "util-linux-2.13-pre7";
src = fetchurl {
url = ftp://ftp.nl.kernel.org/pub/linux/utils/util-linux/testing/util-linux-2.13-pre7.tar.bz2;
md5 = "13cdf4b76533e8421dc49de188f85291";
};
configureFlags = "--disable-use-tty-group";
preBuild = "
makeFlagsArray=(usrbinexecdir=$out/bin usrsbinexecdir=$out/sbin datadir=$out/share exampledir=$out/share/getopt)
installFlagsArray=(\"\${makeFlagsArray[@]}\")
";
# Hack to get static builds to work.
NIX_CFLAGS_COMPILE = "-DHAVE___PROGNAME=1";
}