Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dummy PR 3 #10

Open
wants to merge 1 commit into
base: release-23.11
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions pkgs/development/compilers/bluespec/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
, tcl
, tk
, xorg
, yices
, yices # bsc uses a patched version of yices
, zlib
, ghc
, gmp-static
Expand All @@ -28,13 +28,13 @@ let

in stdenv.mkDerivation rec {
pname = "bluespec";
version = "2023.01";
version = "2024.01";

src = fetchFromGitHub {
owner = "B-Lang-org";
repo = "bsc";
rev = version;
sha256 = "sha256-kFHQtRaQmZiHo+IQ+mwbW23i3kbdAh/XH0OE7P/ibd0=";
sha256 = "sha256-yqmtydv9444qhps0t4EdPaSZNh/9XCuUwOzLqz0gjxE=";
};

yices-src = fetchurl {
Expand All @@ -46,7 +46,8 @@ in stdenv.mkDerivation rec {

outputs = [ "out" "doc" ];

# https://github.com/B-Lang-org/bsc/pull/278
# https://github.com/B-Lang-org/bsc/pull/278 is still applicable, but will probably not be applied as such
# there is work ongoing: https://github.com/B-Lang-org/bsc/issues/595 https://github.com/B-Lang-org/bsc/pull/600
patches = [ ./libstp_stub_makefile.patch ];

postUnpack = ''
Expand All @@ -67,6 +68,10 @@ in stdenv.mkDerivation rec {

# allow running bsc to bootstrap
export LD_LIBRARY_PATH=$PWD/inst/lib/SAT

# use more cores for GHC building, 44 causes heap overflows in ghc, and
# there is not much speedup after 8..
if [[ $NIX_BUILD_CORES -gt 8 ]] ; then export GHCJOBS=8; else export GHCJOBS=$NIX_BUILD_CORES; fi
'';

buildInputs = yices.buildInputs ++ [
Expand Down Expand Up @@ -96,7 +101,7 @@ in stdenv.mkDerivation rec {
"NO_DEPS_CHECKS=1" # skip the subrepo check (this deriviation uses yices-src instead of the subrepo)
"NOGIT=1" # https://github.com/B-Lang-org/bsc/issues/12
"LDCONFIG=ldconfig" # https://github.com/B-Lang-org/bsc/pull/43
"STP_STUB=1"
"STP_STUB=1" # uses yices as a SMT solver and stub out STP
];

doCheck = true;
Expand All @@ -106,7 +111,7 @@ in stdenv.mkDerivation rec {
verilog
];

checkTarget = "check-smoke";
checkTarget = "check-smoke"; # this is the shortest check but "check-suite" tests much more

installPhase = ''
mkdir -p $out
Expand Down
Loading