[Nix-dev] build question
Marc Weber
marco-oweber at gmx.de
Wed Feb 16 16:23:37 CET 2011
Hi Roelof,
usually on mailinglists "bottom posting" is used.
This means you copy *only* the text you refer to from emails and then
put your reply below it.
> I will look into the tar and find out which to use.
> Must The package be installed in /usr/nixos/packages/ then or can I
> use the default from the sources.
When nix runs the build process it defines a special env var called
$out. Its the store path you should install into.
Goto the setup.sh file I pointed you to in my previous mail. You'll find
this code:
if test -z "$prefix"; then
prefix="$out";
fi
if prefix is not yet set set it to $out.
Then in the configurePhase the --prefix=$prefix is added using some more
shell magic:
configureFlags="${prefixKey:---prefix=}$prefix $configureFlags"
Also have a look at some existing gnome packages - for example
libgnomeprint:
pkgs/desktops/gnome-2.28/platform/libgnomeprint/default.nix
You'll see that the defaults for configure && make etc work fine because
no special treatment can be found in that file.
Marc Weber
More information about the nix-dev
mailing list