1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-03-06 23:31:34 +00:00
nixpkgs/pkgs
Austin Seipp 3d36ea6a05 nextpnr: with GUI support, be sure to set QT_PLUGIN_PATH
This is to help QT find all the necessary plugin libraries at startup
time, otherwise it freaks out when run out of 'nix-env' environment or
run directly, e.g.  `./result/bin/nextpnr-ice40 --gui`. The reason for
this is that none of the traditional paths it looks for are available.
The workarounds for this are to otherwise:

  - Install e.g. into environment.systemPackages (presumably it will
then pick up QT libraries in /run/current-system/sw/lib/qt-*)

  - Install 'qtbase' into your user environment (qt will also try to
load dependent libraries out of ~/.nix-profile/lib/qt-*)

However, this QT_PLUGIN_PATH wrapping hack is used elsewhere in the
tree, presumably to mitigate these (poor) workarounds, especially for
non-NixOS users. There seems to be no downside to this.

With this, I have been able to run NextPNR's GUI on an Ubuntu 16.04
system using the 'nixGL' hack by simply running the resulting binary
from anywhere (though there seems to be some glitching artifacts in the
floorplan UI, I suspect this is due to a buggy OpenGL stack rather than
any direct problem with NextPNR or the QT libraries themselves).

This does not mark the GUI build as non-broken yet, though. That will
happen in the future after a bit more testing and splitting nextpnr into
separate minimal/GUI attributes.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-01-12 15:51:00 -06:00
..
applications Merge pull request #53837 from andir/irssi 2019-01-12 13:31:22 +01:00
build-support Merge pull request #52870 from xtruder/pkgs/dockerTools/buildLayeredImage/extraCommands 2019-01-10 19:00:19 +01:00
common-updater
data culmus: add .otf, .pfa and .afm files (#53638) 2019-01-11 13:57:28 +01:00
desktops gnome3.gnome-system-log: remove, broken and obsolete (#53768) 2019-01-10 21:16:25 +01:00
development nextpnr: with GUI support, be sure to set QT_PLUGIN_PATH 2019-01-12 15:51:00 -06:00
games Merge pull request #53300 from msteen/openra 2019-01-10 13:56:46 -05:00
misc Merge pull request #53602 from ivan/wine-4.0-rc5 2019-01-11 18:06:10 -05:00
os-specific Merge pull request #53743 from baracoder/add-nvidia-maintainer 2019-01-11 19:09:40 +01:00
servers home-assistant: 0.85.0 -> 0.85.1 2019-01-12 07:39:19 +01:00
shells zsh: move --enable-zprofile into configureFlags (#52718) 2019-01-08 11:11:37 +01:00
stdenv stdenv: allow custom stdenv to take crossOverlays 2019-01-07 20:53:10 -06:00
test
tools Merge pull request #53686 from dtzWill/update/poppler-0.73.0 2019-01-12 06:50:44 -06:00
top-level qt5: use 5.11 on darwin until it's fixed 2019-01-12 09:20:42 -05:00