3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/util-linux/default.nix
Michael Raskin 58610e801a Added curses variant of util-linux. cfdisk is a fine tool..
svn path=/nixpkgs/trunk/; revision=9870
2007-12-06 19:36:43 +00:00

24 lines
586 B
Nix

args: with args;
stdenv.mkDerivation {
name = "util-linux-2.13-pre7";
src = fetchurl {
url = mirror://kernel/linux/utils/util-linux/testing/util-linux-2.13-pre7.tar.bz2;
md5 = "13cdf4b76533e8421dc49de188f85291";
};
configureFlags = "--disable-use-tty-group";
buildInputs = []
++ (if args ? ncurses then [args.ncurses] else [])
;
preBuild = "
makeFlagsArray=(usrbinexecdir=$out/bin usrsbinexecdir=$out/sbin datadir=$out/share exampledir=$out/share/getopt)
";
# Hack to get static builds to work.
NIX_CFLAGS_COMPILE = "-DHAVE___PROGNAME=1";
}