[Nix-dev] Re: Lua modules support

Ludovic Courtès ludo at gnu.org
Tue Mar 30 12:20:26 CEST 2010


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.

Hope this helps,
Ludo’.




More information about the nix-dev mailing list