File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed
Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -198,22 +198,24 @@ let
198198 postInstall = let
199199 # depends on gnat14 which doesn't work ATM on aarch64:
200200 # https://github.com/NixOS/nixpkgs/issues/469109
201- ghdl-llvm-opt = prev . lib . optional ( ! prev . stdenv . hostPlatform . isAarch64 ) [ prev . ghdl-llvm ] ;
202- in ( old . postInstall or "" ) + ''
203- wrapProgram $out/bin/clash-testsuite \
204- --add-flags "--no-modelsim --no-vivado" \
205- --prefix PATH : ${ dirOf "${ old . passthru . env . NIX_GHC } " } \
206- --set GHC_PACKAGE_PATH "${ old . passthru . env . NIX_GHC_LIBDIR } /package.conf.d:" \
207- --prefix PATH : ${ prev . lib . makeBinPath [
201+ ghdl-llvm-opt = prev . lib . optional ( ! prev . stdenv . hostPlatform . isAarch64 ) prev . ghdl-llvm ;
202+ lib-deps = [
203+ prev . zlib . static
204+ ] ++ ghdl-llvm-opt ;
205+ bin-deps = [
208206 prev . gcc
209207 prev . sby
210208 prev . verilator
211209 prev . iverilog
212210 prev . yosys
213- ] ++ ghdl-llvm-opt } \
214- --set LIBRARY_PATH ${ prev . lib . makeLibraryPath [
215- prev . zlib . static
216- ] ++ ghdl-llvm-opt }
211+ ] ++ ghdl-llvm-opt ;
212+ in ( old . postInstall or "" ) + ''
213+ wrapProgram $out/bin/clash-testsuite \
214+ --add-flags "--no-modelsim --no-vivado" \
215+ --prefix PATH : ${ dirOf "${ old . passthru . env . NIX_GHC } " } \
216+ --set GHC_PACKAGE_PATH "${ old . passthru . env . NIX_GHC_LIBDIR } /package.conf.d:" \
217+ --prefix PATH : ${ prev . lib . makeBinPath bin-deps } \
218+ --set LIBRARY_PATH ${ prev . lib . makeLibraryPath lib-deps }
217219 '' ;
218220 } ) ;
219221 } ;
You can’t perform that action at this time.
0 commit comments