2021-01-17 00:15:33 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, pkg-config
|
|
|
|
, yosys, readline, zlib, bluespec
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "yosys-bluespec";
|
2022-01-07 04:07:37 +00:00
|
|
|
version = "2021.09.08";
|
2021-01-17 00:15:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "thoughtpolice";
|
|
|
|
repo = "yosys-bluespec";
|
2022-01-07 04:07:37 +00:00
|
|
|
rev = "f6f4127a4e96e18080fd5362b6769fa3e24c76b1";
|
|
|
|
sha256 = "sha256-3cNFP/k4JsgLyUQHWU10Htl2Rh0staAcA3R4piD6hDE=";
|
2021-01-17 00:15:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ yosys readline zlib bluespec ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)/share/yosys/plugins"
|
|
|
|
"STATIC_BSC_PATH=${bluespec}/bin/bsc"
|
|
|
|
"STATIC_BSC_LIBDIR=${bluespec}/lib"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Bluespec plugin for Yosys";
|
|
|
|
license = licenses.isc;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|