Hi,

Michael Raskin wrote:

> ifconfig lacks ipv6 in NixPkgs and in general there are claims that
> iproute2 obsoletes ifconfig on the net.. So I propose a nix-expression
> for it to include aside with net-tools. Tested with fresh package
> collection as the parameter.

>   preBuild = "sed -e '[EMAIL PROTECTED]@SBINDIR=\$(out)/sbin@' -i Makefile ; 
> " +

Wow, I didn't know the -i flag in sed.  You learn something new every day :-)

But rather than doing a substitution on the Makefile, you can also do this by
passing a parameter to make, like

preBuild = "
  makeFlagsArray=(SBINDIR=$out/sbin CONFDIR=$out/etc ...)
";

This is less sensitive to changes in the Makefile between releases.

-- 
Eelco Dolstra | http://www.cs.uu.nl/~eelco
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to