mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-29 13:26:31 +00:00
Migrate build system to CMake
See #5895 for details. This commit does not include CI or documentation changes.
This commit is contained in:
parent
9d0cdb8551
commit
9b087b4aa7
207 changed files with 5202 additions and 2294 deletions
53
nix/pkgs/yosys.nix
Normal file
53
nix/pkgs/yosys.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{
|
||||
bison,
|
||||
cmake,
|
||||
flex,
|
||||
gtest,
|
||||
lib,
|
||||
libffi,
|
||||
pkg-config,
|
||||
python3,
|
||||
readline,
|
||||
ninja,
|
||||
stdenv,
|
||||
tcl,
|
||||
zlib,
|
||||
src,
|
||||
rev,
|
||||
...
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "yosys";
|
||||
inherit src;
|
||||
|
||||
nativeBuildInputs = [
|
||||
bison
|
||||
cmake
|
||||
flex
|
||||
pkg-config
|
||||
python3
|
||||
ninja
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gtest
|
||||
libffi
|
||||
readline
|
||||
tcl
|
||||
zlib
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
(lib.cmakeBool "YOSYS_SKIP_ABC_SUBMODULE_CHECK" true)
|
||||
(lib.cmakeFeature "YOSYS_CHECKOUT_INFO" rev)
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Yosys Open SYnthesis Suite";
|
||||
homepage = "https://yosyshq.net/yosys/";
|
||||
license = licenses.isc;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue