nixpkgs: add symbiyosys, for HDL verification flows
Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
35c885dc3d
commit
740fb165da
37
pkgs/applications/science/logic/symbiyosys/default.nix
Normal file
37
pkgs/applications/science/logic/symbiyosys/default.nix
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, yosys, python3 }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "symbiyosys-${version}";
|
||||||
|
version = "2017.10.16";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "cliffordwolf";
|
||||||
|
repo = "symbiyosys";
|
||||||
|
rev = "f403b99fae053baab651e3ec8345a68cb3ba6a96";
|
||||||
|
sha256 = "0jzzlybxaqmhrasfjv3q3skshalr7lvv4p142qgdqz1ig36znbi8";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ python3 yosys ];
|
||||||
|
|
||||||
|
buildPhase = "true";
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin $out/share/yosys/python3
|
||||||
|
|
||||||
|
cp sbysrc/sby_*.py $out/share/yosys/python3/
|
||||||
|
cp sbysrc/sby.py $out/bin/sby
|
||||||
|
chmod +x $out/bin/sby
|
||||||
|
|
||||||
|
# Fix up shebang and Yosys imports
|
||||||
|
patchShebangs $out/bin/sby
|
||||||
|
substituteInPlace $out/bin/sby \
|
||||||
|
--replace "##yosys-sys-path##" \
|
||||||
|
"sys.path += [p + \"/share/yosys/python3/\" for p in [\"$out\", \"${yosys}\"]]"
|
||||||
|
'';
|
||||||
|
meta = {
|
||||||
|
description = "Yosys verification tools for Hardware Definition Languages";
|
||||||
|
homepage = https://symbiyosys.readthedocs.io/;
|
||||||
|
license = stdenv.lib.licenses.mit;
|
||||||
|
maintainers = with stdenv.lib.maintainers; [ thoughtpolice ];
|
||||||
|
platforms = stdenv.lib.platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
@ -18684,6 +18684,8 @@ with pkgs;
|
|||||||
|
|
||||||
boolector = callPackage ../applications/science/logic/boolector {};
|
boolector = callPackage ../applications/science/logic/boolector {};
|
||||||
|
|
||||||
|
symbiyosys = callPackage ../applications/science/logic/symbiyosys {};
|
||||||
|
|
||||||
### SCIENCE / ELECTRONICS
|
### SCIENCE / ELECTRONICS
|
||||||
|
|
||||||
adms = callPackage ../applications/science/electronics/adms { };
|
adms = callPackage ../applications/science/electronics/adms { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user