[Nix-dev] Re: Lua modules support

François Perrad francois.perrad at gadz.org
Wed Mar 31 15:59:31 CEST 2010


2010/3/30 Ludovic Courtès <ludo at gnu.org>:
> Hi,
>
> François Perrad <francois.perrad at gadz.org> writes:
>
>> +    phases = "unpackPhase checkPhase installPhase fixupPhase";
>> +    doCheck = true;
>> +    installFlags = "install DESTDIR=\${out}";
>> +    postInstall = ''
>> +      export LUA_PATH="$out/share/lua/5.1/?.lua;$LUA_PATH"
>> +    '';
>
> Exporting variables in ‘postInstall’ is probably useless since nothing
> important happens after ‘installPhase’.
>
> I think what you want is a ‘setup hook’.  See, e.g., guile/setup-hook.sh.

Thanks a lot.
That works with this new patch.

François

>
> Hope this helps,
> Ludo’.
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at cs.uu.nl
> https://mail.cs.uu.nl/mailman/listinfo/nix-dev
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-first-Lua-modules.patch
Type: text/x-diff
Size: 11594 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20100331/17360ace/attachment.bin 


More information about the nix-dev mailing list