Created
September 13, 2025 01:25
-
-
Save taktoa/174e88cdada6464fd679a7e84ab32639 to your computer and use it in GitHub Desktop.
A nix file that builds the slang SystemVerilog parser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Works against nixpkgs 9cb344e96d5b | |
| { stdenv, fetchFromGitHub, cmake, python3, fmt_11, mimalloc, catch2_3 }: | |
| stdenv.mkDerivation rec { | |
| pname = "slang"; | |
| version = "9.0"; | |
| src = fetchFromGitHub { | |
| owner = "MikePopoloski"; | |
| repo = "slang"; | |
| rev = "54385bba240476134f847620a7919df6df652cf0"; | |
| sha256 = "sha256-U/ApMo07+WwNjGcHP/lyT0htA693gSsTdxJLlTLUVAU="; | |
| }; | |
| preConfigure = '' | |
| mkdir -p build/_deps/ | |
| ln -sv ${fmt_11.src} build/_deps/fmt-src | |
| ln -sv ${mimalloc.src} build/_deps/mimalloc-src | |
| ln -sv ${catch2_3.src} build/_deps/catch2-src | |
| ''; | |
| cmakeFlags = [ | |
| "-D__get_git_version=NO" | |
| "-DFETCHCONTENT_FULLY_DISCONNECTED=YES" | |
| "-DCMAKE_INSTALL_LIBDIR=lib" | |
| "-DCMAKE_INSTALL_INCLUDEDIR=include" | |
| "-DSLANG_INCLUDE_TESTS=NO" | |
| ]; | |
| nativeBuildInputs = [cmake python3]; | |
| buildInputs = []; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment