diff --git a/pkgs/development/compilers/nextpnr/default.nix b/pkgs/development/compilers/nextpnr/default.nix index 664ceb79636f..e50ac50dc57d 100644 --- a/pkgs/development/compilers/nextpnr/default.nix +++ b/pkgs/development/compilers/nextpnr/default.nix @@ -3,9 +3,9 @@ , icestorm, trellis , llvmPackages -, enableGui ? true -, wrapQtAppsHook -, qtbase +, enableGui ? false +, wrapQtAppsHook ? null +, qtbase ? null , OpenGL ? null }: @@ -14,14 +14,14 @@ let in with stdenv; mkDerivation rec { pname = "nextpnr"; - version = "2020.12.01"; + version = "2021.01.02"; srcs = [ (fetchFromGitHub { owner = "YosysHQ"; repo = "nextpnr"; - rev = "868902fbdf0b476bdccf4d25cbb80ba602d2cc11"; - sha256 = "1kb5lhixb7f4q800gjyw9xm9ff1yaq3pgna17f5f0bw6b4ds56zc"; + rev = "9b9628047c01a970cfe20f83f2b7129ed109440d"; + sha256 = "0pcv96d0n40h2ipywi909hpzlys5b6r4pamc320qk1xxhppmgkmm"; name = "nextpnr"; }) (fetchFromGitHub { @@ -48,14 +48,14 @@ with stdenv; mkDerivation rec { [ "-DCURRENT_GIT_VERSION=${lib.substring 0 7 (lib.elemAt srcs 0).rev}" "-DARCH=generic;ice40;ecp5" "-DBUILD_TESTS=ON" - "-DICEBOX_ROOT=${icestorm}/share/icebox" + "-DICESTORM_INSTALL_PREFIX=${icestorm}" "-DTRELLIS_INSTALL_PREFIX=${trellis}" "-DTRELLIS_LIBDIR=${trellis}/lib/trellis" "-DUSE_OPENMP=ON" # warning: high RAM usage - "-DSERIALIZE_CHIPDB=OFF" + "-DSERIALIZE_CHIPDBS=OFF" ] - ++ (lib.optional (!enableGui) "-DBUILD_GUI=OFF") + ++ (lib.optional enableGui "-DBUILD_GUI=ON") ++ (lib.optional (enableGui && stdenv.isDarwin) "-DOPENGL_INCLUDE_DIR=${OpenGL}/Library/Frameworks"); diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0321d183b91e..ed1f7b275dc1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10076,7 +10076,10 @@ in neko = callPackage ../development/compilers/neko { }; - nextpnr = libsForQt5.callPackage ../development/compilers/nextpnr { + nextpnr = callPackage ../development/compilers/nextpnr { }; + + nextpnrWithGui = libsForQt5.callPackage ../development/compilers/nextpnr { + enableGui = true; inherit (darwin.apple_sdk.frameworks) OpenGL; };