[Nix-dev] nix-shell ignores custom configurePhase/buildPhase etc.?
Bjørn Forsman
bjorn.forsman at gmail.com
Sun Sep 15 14:30:49 CEST 2013
Hi,
Why doesn't a custom configurePhase (or buildPhase, installPhase etc.)
work when run from nix-shell? In nix-shell, all phases seem to be the
default, even if the derivation has customized some of them.
Take the openscad expression as an example. It has this configurePhase:
configurePhase = ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I$(echo
${eigen}/include/eigen*) "
qmake PREFIX="$out" VERSION=${version}
'';
But when run in nix-shell, it ignores this custom configurePhase:
$ nix-shell -A openscad
warning: you did not specify `--add-root'; the result might be removed
by the garbage collector
$ unpackPhase
unpacking source archive
/nix/store/qbw1m3adaz1ayhvgj99iyi3qisp08biz-openscad-2013.01.src.tar.gz
source root is openscad-2013.01
$ cd openscad-*
$ configurePhase
no configure script, doing nothing
Best regards,
Bjørn Forsman
More information about the nix-dev
mailing list