Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15454,6 +15454,12 @@
githubId = 1104419;
name = "Lucas Hoffmann";
};
lucgaitskell = {
email = "me@lucg.xyz";
github = "luciengaitskell";
githubId = 9143221;
name = "Luc Gaitskell";
};
luckshiba = {
email = "luckshiba@protonmail.com";
github = "luckshiba";
Expand Down
53 changes: 53 additions & 0 deletions pkgs/by-name/yo/yosys-slang/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
stdenv,
lib,
fetchFromGitHub,
cmake,
yosys,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "yosys-slang";
version = "0-unstable-2026-01-31";
plugin = "slang";

src = fetchFromGitHub {
owner = "povik";
repo = "yosys-slang";
rev = "4e1ad7c11e23cffe131aa5c478083f1d99f0c0be";
hash = "sha256-4uKvtBUdDYm7ZERLcjWObvkbIARANUWiz4HmZsN2AA4=";
fetchSubmodules = true;
};

nativeBuildInputs = [
cmake
];

buildInputs = [
yosys
];

cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DYOSYS_CONFIG=${yosys}/bin/yosys-config"
"-DYOSYS_SLANG_REVISION=${finalAttrs.src.rev}"
"-DSLANG_REVISION=UNKNOWN"
];

installPhase = ''
runHook preInstall
mkdir -p $out/share/yosys/plugins
cp slang.so $out/share/yosys/plugins/slang.so
runHook postInstall
'';

doCheck = false; # No tests defined in the plugin itself

meta = with lib; {
description = "SystemVerilog frontend plugin for Yosys using the slang library";
homepage = "https://github.com/povik/yosys-slang";
license = licenses.isc;
platforms = platforms.all;
maintainers = with maintainers; [ lucgaitskell ];
};
})
2 changes: 2 additions & 0 deletions pkgs/by-name/yo/yosys/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
makeWrapper,
yosys-bluespec,
yosys-ghdl,
yosys-slang,
yosys-symbiflow,
nix-update-script,
enablePython ? true, # enable python binding
Expand Down Expand Up @@ -58,6 +59,7 @@ let
allPlugins = {
bluespec = yosys-bluespec;
ghdl = yosys-ghdl;
slang = yosys-slang;
}
// yosys-symbiflow;

Expand Down
Loading