17 buildPythonPackage rec {
22 src = fetchFromGitHub {
23 owner = "pascalkuthe";
25 rev = "VerilogAE-v${version}";
26 hash = "sha256-TILKKmgSyhyxp88sdflDXAoH++iP6CMpdoXN1/1fsjU=";
30 substituteInPlace openvaf/llvm/src/initialization.rs \
31 --replace-fail "i8" "libc::c_char"
32 substituteInPlace openvaf/osdi/build.rs \
33 --replace-fail "-fPIC" ""
36 cargoDeps = rustPlatform.importCargoLock {
37 lockFile = ./Cargo.lock;
39 "salsa-0.17.0-pre.2" = "sha256-6GssvV76lFr5OzAUekz2h6f82Tn7usz5E8MSZ5DmgJw=";
45 rustPlatform.cargoSetupHook
46 rustPlatform.bindgenHook
57 llvmPackages_15.libclang
62 cargoBuildType = "release";
64 pythonImportsCheck = [ "verilogae" ];
66 hardeningDisable = [ "pic" ];
69 description = "Verilog-A tool useful for compact model parameter extraction";
70 homepage = "https://man.sr.ht/~dspom/openvaf_doc/verilogae/";
71 license = lib.licenses.gpl3Only;
72 maintainers = with lib.maintainers; [
76 platforms = lib.platforms.linux;
77 sourceProvenance = [ lib.sourceTypes.binaryBytecode ];