[Nix-dev] "nix-shell --pure -p qt5.qtbase --run qmake" not finding linux-g++

Thomas Tuegel ttuegel at gmail.com
Mon Jan 23 03:56:26 CET 2017


On Sun, Jan 22, 2017 at 1:41 PM, Bjørn Forsman <bjorn.forsman at gmail.com> wrote:
> It doesn't work for me:
>
> $ nix-shell --pure -p qt5.qtbase -p qt5.qmakeHook --run qmake
> Could not find qmake configuration file linux-g++.
> Error processing project file: /home/bfo/test.pro
>
> Does it work for you?

No, but the following does:

$ nix-shell --pure -p qt5.qtbase -p qt5.qmakeHook --run "runHook
preConfigure; qmake"

It will produce a harmless warning, and it will litter your current
directory with temporary files.

Generally, one needs to run all the preceding phases, even in nix-shell.

Best,
Tom


More information about the nix-dev mailing list