Add Gowin FPGA toolchain for desktop development.
Vendor Gowin EDU IDE, add openFPGALoader/Yosys/nextpnr/Apicula, and USB udev rules for Tang boards.
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
{
|
||||
lib,
|
||||
buildFHSEnv,
|
||||
freetype,
|
||||
xkeyboard_config,
|
||||
callPackage,
|
||||
}:
|
||||
let
|
||||
gowin-ide = callPackage ./gowin-ide.nix { };
|
||||
in
|
||||
buildFHSEnv {
|
||||
name = "gowin-env";
|
||||
targetPkgs =
|
||||
pkgs:
|
||||
# ldd /nix/store/*gowin-version/bin/gw_ide
|
||||
with pkgs; [
|
||||
gowin-ide
|
||||
# runtime dependencies
|
||||
libGL
|
||||
fontconfig
|
||||
libxcrypt-legacy
|
||||
zlib
|
||||
libuuid
|
||||
libpulseaudio
|
||||
glib
|
||||
dbus
|
||||
libusb1
|
||||
|
||||
nss
|
||||
nspr
|
||||
expat
|
||||
krb5
|
||||
libxcomposite
|
||||
libxdamage
|
||||
libxfixes
|
||||
libxtst
|
||||
|
||||
udev
|
||||
alsa-lib
|
||||
vulkan-loader
|
||||
libx11
|
||||
libxcursor
|
||||
libxi
|
||||
libxrandr
|
||||
libxkbcommon
|
||||
wayland
|
||||
qt5.qtwayland
|
||||
qt5.qtbase
|
||||
];
|
||||
profile = ''
|
||||
export LD_PRELOAD="${lib.getLib freetype}/lib/libfreetype.so"
|
||||
export QT_XKB_CONFIG_ROOT="${xkeyboard_config}/etc/X11/xkb"
|
||||
export QT_QPA_PLATFORM=xcb
|
||||
export FHS=1
|
||||
|
||||
gw_ide
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user