flake: Fix bluespec bsc binary
Nixpkgs pr incoming
This commit is contained in:
parent
71c938c912
commit
14d20e3101
22
flake.nix
22
flake.nix
|
@ -34,7 +34,27 @@
|
||||||
# Versions can be checked with
|
# Versions can be checked with
|
||||||
# `nix eval --json ".#riscv-bluespec-classic.nativeBuildInputs" | nix-shell -p jq --run jq`
|
# `nix eval --json ".#riscv-bluespec-classic.nativeBuildInputs" | nix-shell -p jq --run jq`
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
bluespec
|
(
|
||||||
|
(bluespec.override {
|
||||||
|
makeWrapper = prev.makeBinaryWrapper;
|
||||||
|
withDocs = false;
|
||||||
|
texliveFull = null;
|
||||||
|
asciidoctor = null;
|
||||||
|
}).overrideAttrs
|
||||||
|
{
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
# https://github.com/B-Lang-org/bsc/blob/65e3a87a17f6b9cf38cbb7b6ad7a4473f025c098/src/comp/bsc.hs#L1839
|
||||||
|
wrapProgram $out/bin/core/bsc \
|
||||||
|
--prefix PATH : ${
|
||||||
|
prev.lib.makeBinPath (
|
||||||
|
if stdenv.hostPlatform.isDarwin then [ prev.cctools ] else [ prev.targetPackages.stdenv.cc ]
|
||||||
|
)
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
)
|
||||||
nextpnr
|
nextpnr
|
||||||
openfpgaloader
|
openfpgaloader
|
||||||
trellis
|
trellis
|
||||||
|
|
Loading…
Reference in a new issue