https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
5 lines
138 B
Bash
5 lines
138 B
Bash
addYosysPluginPath() {
|
|
addToSearchPath NIX_YOSYS_PLUGIN_DIRS "$1/share/yosys/plugins"
|
|
}
|
|
|
|
addEnvHooks "$targetOffset" addYosysPluginPath
|