2007-12-08 16:21:03 +01:00
|
|
|
args: with args;
|
2004-02-16 11:40:45 +01:00
|
|
|
|
2004-03-29 19:23:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2006-10-30 16:14:15 +01:00
|
|
|
name = "util-linux-2.13-pre7";
|
|
|
|
|
2004-02-16 11:40:45 +01:00
|
|
|
src = fetchurl {
|
2007-08-27 15:59:40 +02:00
|
|
|
url = mirror://kernel/linux/utils/util-linux/testing/util-linux-2.13-pre7.tar.bz2;
|
2006-10-30 16:14:15 +01:00
|
|
|
md5 = "13cdf4b76533e8421dc49de188f85291";
|
2004-02-16 11:40:45 +01:00
|
|
|
};
|
2006-10-30 16:14:15 +01:00
|
|
|
|
|
|
|
configureFlags = "--disable-use-tty-group";
|
|
|
|
|
2007-12-08 16:21:03 +01:00
|
|
|
buildInputs = []
|
|
|
|
++ (if args ? ncurses then [args.ncurses] else [])
|
|
|
|
;
|
|
|
|
|
2006-10-30 16:14:15 +01:00
|
|
|
preBuild = "
|
|
|
|
makeFlagsArray=(usrbinexecdir=$out/bin usrsbinexecdir=$out/sbin datadir=$out/share exampledir=$out/share/getopt)
|
|
|
|
";
|
2006-10-31 17:21:24 +01:00
|
|
|
|
|
|
|
# Hack to get static builds to work.
|
|
|
|
NIX_CFLAGS_COMPILE = "-DHAVE___PROGNAME=1";
|
2004-02-16 11:40:45 +01:00
|
|
|
}
|