parent
d13e64641d
commit
12ae04518b
@ -6,6 +6,7 @@
|
|||||||
, enableGui ? true
|
, enableGui ? true
|
||||||
, wrapQtAppsHook
|
, wrapQtAppsHook
|
||||||
, qtbase
|
, qtbase
|
||||||
|
, OpenGL ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -41,7 +42,10 @@ with stdenv; mkDerivation rec {
|
|||||||
"-DSERIALIZE_CHIPDB=OFF"
|
"-DSERIALIZE_CHIPDB=OFF"
|
||||||
# use PyPy for icestorm if enabled
|
# use PyPy for icestorm if enabled
|
||||||
"-DPYTHON_EXECUTABLE=${icestorm.pythonInterp}"
|
"-DPYTHON_EXECUTABLE=${icestorm.pythonInterp}"
|
||||||
] ++ (lib.optional (!enableGui) "-DBUILD_GUI=OFF");
|
]
|
||||||
|
++ (lib.optional (!enableGui) "-DBUILD_GUI=OFF")
|
||||||
|
++ (lib.optional (enableGui && stdenv.isDarwin)
|
||||||
|
"-DOPENGL_INCLUDE_DIR=${OpenGL}/Library/Frameworks");
|
||||||
|
|
||||||
# Fix the version number. This is a bit stupid (and fragile) in practice
|
# Fix the version number. This is a bit stupid (and fragile) in practice
|
||||||
# but works ok. We should probably make this overrideable upstream.
|
# but works ok. We should probably make this overrideable upstream.
|
||||||
@ -61,7 +65,7 @@ with stdenv; mkDerivation rec {
|
|||||||
description = "Place and route tool for FPGAs";
|
description = "Place and route tool for FPGAs";
|
||||||
homepage = https://github.com/yosyshq/nextpnr;
|
homepage = https://github.com/yosyshq/nextpnr;
|
||||||
license = licenses.isc;
|
license = licenses.isc;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ thoughtpolice emily ];
|
maintainers = with maintainers; [ thoughtpolice emily ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -8265,7 +8265,9 @@ in
|
|||||||
|
|
||||||
neko = callPackage ../development/compilers/neko { };
|
neko = callPackage ../development/compilers/neko { };
|
||||||
|
|
||||||
nextpnr = libsForQt5.callPackage ../development/compilers/nextpnr { };
|
nextpnr = libsForQt5.callPackage ../development/compilers/nextpnr {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) OpenGL;
|
||||||
|
};
|
||||||
|
|
||||||
nasm = callPackage ../development/compilers/nasm { };
|
nasm = callPackage ../development/compilers/nasm { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user