Skip to content

Commit

Permalink
[nix] differentiate exists and valid
Browse files Browse the repository at this point in the history
Signed-off-by: Avimitin <[email protected]>
  • Loading branch information
Avimitin authored and sequencer committed Jul 29, 2024
1 parent eb57d9f commit 9e02835
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion nix/pkgs/vcs-fhs-env.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ buildFHSEnv {
name = "vcs-fhs-env";

profile = ''
[ ! -d "${vcStaticHome}" ] && echo "env VC_STATIC_HOME not set" && exit 1
[ ! -e "${vcStaticHome}" ] && echo "env VC_STATIC_HOME not set" && exit 1
[ ! -d "${vcStaticHome}" ] && echo "VC_STATIC_HOME not accessible" && exit 1
[ -z "${snpslmdLicenseFile}" ] && echo "env SNPS LICENSE not set" && exit 1
export VC_STATIC_HOME=${vcStaticHome}
Expand Down
2 changes: 1 addition & 1 deletion nix/t1/vcs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ stdenv.mkDerivation {
-sverilog \
-full64 \
-timescale=1ns/1ps \
-P $VERDI_HOME/share/PLI/VCS/LINUX64/novas.tab $VERDI_HOME/share/PLI/VCS/LINUX64/pli.a \
${lib.optionalString vcs-dpi-lib.enable-trace ''
-P $VERDI_HOME/share/PLI/VCS/LINUX64/novas.tab $VERDI_HOME/share/PLI/VCS/LINUX64/pli.a \
-debug_access+pp+dmptf+thread \
-kdb=common_elab,hgldd_all''} \
-file filelist.f \
Expand Down

0 comments on commit 9e02835

Please sign in to comment.