bluespec: unstable-2020.02.09 -> unstable-2020.11.04
Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
03cca8d704
commit
d402d913d7
@ -4,40 +4,45 @@
|
|||||||
, autoconf
|
, autoconf
|
||||||
, automake
|
, automake
|
||||||
, fontconfig
|
, fontconfig
|
||||||
, gmp
|
, gmp-static
|
||||||
, gperf
|
, gperf
|
||||||
, libX11
|
, libX11
|
||||||
, libpoly
|
, libpoly
|
||||||
, perl
|
, perl
|
||||||
|
, flex
|
||||||
|
, bison
|
||||||
, pkgconfig
|
, pkgconfig
|
||||||
|
, itktcl
|
||||||
|
, incrtcl
|
||||||
|
, tcl
|
||||||
|
, tk
|
||||||
, verilog
|
, verilog
|
||||||
, xorg
|
, xorg
|
||||||
|
, yices
|
||||||
, zlib
|
, zlib
|
||||||
, ghc
|
, ghc
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
# yices wants a libgmp.a and fails otherwise
|
ghcWithPackages = ghc.withPackages (g: (with g; [old-time regex-compat syb split ]));
|
||||||
gmpStatic = gmp.override { withStatic = true; };
|
|
||||||
|
|
||||||
ghcWithPackages = ghc.withPackages (g: (with g; [old-time regex-compat syb]));
|
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
pname = "bluespec";
|
pname = "bluespec";
|
||||||
version = "unstable-2020.02.09";
|
version = "unstable-2020.11.04";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "B-Lang-org";
|
owner = "B-Lang-org";
|
||||||
repo = "bsc";
|
repo = "bsc";
|
||||||
rev = "05c8afb08078e437c635b9c708124b428ac51b3d";
|
rev = "103357f32cf63f2ca2b16ebc8e2c675ec5562464";
|
||||||
sha256 = "06yhpkz7wga1a0p9031cfjqbzw7205bj2jxgdghhfzmllaiphniy";
|
sha256 = "0iikzx0fxky0fmc31lyxfldy1wixr2mayzcn24b8d76wd4ix1vk3";
|
||||||
fetchSubmodules = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
buildInputs = [
|
patches = [ ./libstp_stub_makefile.patch ];
|
||||||
|
|
||||||
|
buildInputs = yices.buildInputs ++ [
|
||||||
zlib
|
zlib
|
||||||
gmpStatic gperf libpoly # yices
|
tcl tk
|
||||||
libX11 # tcltk
|
libX11 # tcltk
|
||||||
xorg.libXft
|
xorg.libXft
|
||||||
fontconfig
|
fontconfig
|
||||||
@ -46,6 +51,8 @@ in stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
automake autoconf
|
automake autoconf
|
||||||
perl
|
perl
|
||||||
|
flex
|
||||||
|
bison
|
||||||
pkgconfig
|
pkgconfig
|
||||||
ghcWithPackages
|
ghcWithPackages
|
||||||
];
|
];
|
||||||
@ -54,13 +61,13 @@ in stdenv.mkDerivation rec {
|
|||||||
verilog
|
verilog
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [
|
|
||||||
# drop stp support https://github.com/B-Lang-org/bsc/pull/31
|
postUnpack = ''
|
||||||
(fetchpatch {
|
mkdir -p $sourceRoot/src/vendor/yices/v2.6/yices2
|
||||||
url = "https://github.com/flokli/bsc/commit/0bd48ecc2561541dc1368918863c0b2f4915006f.patch";
|
# XXX: only works because yices.src isn't a tarball.
|
||||||
sha256 = "0bam9anld33zfi9d4gs502g94w49zhl5iqmbs2d1p5i19aqpy38l";
|
cp -av ${yices.src}/* $sourceRoot/src/vendor/yices/v2.6/yices2
|
||||||
})
|
chmod -R +rwX $sourceRoot/src/vendor/yices/v2.6/yices2
|
||||||
];
|
'';
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
patchShebangs \
|
patchShebangs \
|
||||||
@ -72,11 +79,15 @@ in stdenv.mkDerivation rec {
|
|||||||
substituteInPlace src/comp/Makefile \
|
substituteInPlace src/comp/Makefile \
|
||||||
--replace 'BINDDIR' 'BINDIR' \
|
--replace 'BINDDIR' 'BINDIR' \
|
||||||
--replace 'install-bsc install-bluetcl' 'install-bsc install-bluetcl $(UTILEXES) install-utils'
|
--replace 'install-bsc install-bluetcl' 'install-bsc install-bluetcl $(UTILEXES) install-utils'
|
||||||
|
# allow running bsc to bootstrap
|
||||||
|
export LD_LIBRARY_PATH=/build/source/inst/lib/SAT
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
|
"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
|
"NOGIT=1" # https://github.com/B-Lang-org/bsc/issues/12
|
||||||
"LDCONFIG=ldconfig" # https://github.com/B-Lang-org/bsc/pull/43
|
"LDCONFIG=ldconfig" # https://github.com/B-Lang-org/bsc/pull/43
|
||||||
|
"STP_STUB=1"
|
||||||
];
|
];
|
||||||
|
|
||||||
installPhase = "mv inst $out";
|
installPhase = "mv inst $out";
|
||||||
|
@ -0,0 +1,28 @@
|
|||||||
|
diff -ru bsc-orig/src/vendor/stp/Makefile bsc-new/src/vendor/stp/Makefile
|
||||||
|
--- bsc-orig/src/vendor/stp/Makefile 1969-12-31 16:00:01.000000000 -0800
|
||||||
|
+++ bsc-new/src/vendor/stp/Makefile 2020-11-12 17:42:40.115143035 -0800
|
||||||
|
@@ -9,12 +9,13 @@
|
||||||
|
SRC = src
|
||||||
|
else
|
||||||
|
SRC = src_stub
|
||||||
|
+SNAME += lib/libstp_stub.so
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(OSTYPE), Darwin)
|
||||||
|
-SNAME=libstp.dylib
|
||||||
|
+SNAME = lib/libstp.dylib
|
||||||
|
else
|
||||||
|
-SNAME=libstp.so.1
|
||||||
|
+SNAME += lib/libstp.so.1
|
||||||
|
endif
|
||||||
|
|
||||||
|
all: install
|
||||||
|
@@ -23,7 +24,7 @@
|
||||||
|
$(MAKE) -C $(SRC) install
|
||||||
|
ln -fsn HaskellIfc include_hs
|
||||||
|
install -m 755 -d $(PREFIX)/lib/SAT
|
||||||
|
- install -m 644 lib/$(SNAME) $(PREFIX)/lib/SAT
|
||||||
|
+ install -m 644 $(SNAME) $(PREFIX)/lib/SAT
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(MAKE) -C $(SRC) clean
|
@ -24,6 +24,8 @@ stdenv.mkDerivation rec {
|
|||||||
postInstall = ''
|
postInstall = ''
|
||||||
rmdir $out/bin
|
rmdir $out/bin
|
||||||
mv $out/lib/itcl${version}/* $out/lib
|
mv $out/lib/itcl${version}/* $out/lib
|
||||||
|
ln -s libitcl${version}${stdenv.hostPlatform.extensions.sharedLibrary} \
|
||||||
|
$out/lib/libitcl${stdenv.lib.versions.major version}${stdenv.hostPlatform.extensions.sharedLibrary}
|
||||||
rmdir $out/lib/itcl${version}
|
rmdir $out/lib/itcl${version}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -22,6 +22,8 @@ stdenv.mkDerivation rec {
|
|||||||
postInstall = ''
|
postInstall = ''
|
||||||
rmdir $out/bin
|
rmdir $out/bin
|
||||||
mv $out/lib/itk${version}/* $out/lib
|
mv $out/lib/itk${version}/* $out/lib
|
||||||
|
ln -s libitk${version}${stdenv.hostPlatform.extensions.sharedLibrary} \
|
||||||
|
$out/lib/libitk${stdenv.lib.versions.major version}${stdenv.hostPlatform.extensions.sharedLibrary}
|
||||||
rmdir $out/lib/itk${version}
|
rmdir $out/lib/itk${version}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -8730,7 +8730,9 @@ in
|
|||||||
|
|
||||||
binaryen = callPackage ../development/compilers/binaryen { };
|
binaryen = callPackage ../development/compilers/binaryen { };
|
||||||
|
|
||||||
bluespec = callPackage ../development/compilers/bluespec { };
|
bluespec = callPackage ../development/compilers/bluespec {
|
||||||
|
gmp-static = gmp.override { withStatic = true; };
|
||||||
|
};
|
||||||
|
|
||||||
ciao = callPackage ../development/compilers/ciao { };
|
ciao = callPackage ../development/compilers/ciao { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user