3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-05-30 13:56:33 +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:
Catherine 2026-05-12 05:33:04 +00:00
parent 7bcda9d304
commit 5f1d2297aa
207 changed files with 5257 additions and 2294 deletions

52
nix/pkgs/yosys.nix Normal file
View file

@ -0,0 +1,52 @@
{
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.cmakeFeature "YOSYS_CHECKOUT_INFO" rev)
];
enableParallelBuilding = true;
meta = with lib; {
description = "Yosys Open SYnthesis Suite";
homepage = "https://yosyshq.net/yosys/";
license = licenses.isc;
};
}