[Nix-dev] Passing args to builder.sh

Luca Bruno lethalman88 at gmail.com
Sat May 10 18:26:37 CEST 2014


mkDerivation {  builder = ...; localBios = ...; } any attribute inside
mkDerivation will be passed in the builder as environment variable.


On Sat, May 10, 2014 at 2:43 PM, Anderson Torres <
torres.anderson.85 at gmail.com> wrote:

> Hello, Nixers!
>
> I want to know how can I pass some options to a builder.sh script.
>
> I am maintaining a package for 8086tiny. It is not very
> "autoconf"-style, in fact it is completely ad-hoc: a single Makefile
> with a "gcc file.c" command. I am using an external builder.sh script
> to install it.
>
> But I want to pass a parameter, say "localBios". If 0, builder.sh will
> not install a locally assembled BIOS file; if 1, it will assemble and
> install a BIOS.
>
> How can I do it in Nix?
>
> Thanks in advance!
> Anderson
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>



-- 
www.debian.org - The Universal Operating System
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140510/18bb8ca5/attachment.html 


More information about the nix-dev mailing list