Skip to content

Commit

Permalink
Switch opentitan dev env to buildFHSEnvOverlay
Browse files Browse the repository at this point in the history
The cert workaround seems to be no longer necessarry.
  • Loading branch information
nbdd0121 committed Sep 4, 2024
1 parent f808b54 commit e83ca6c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions dev/opentitan.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@
'';
};
in
(pkgs.buildFHSEnv {
name = "opentitan";
(pkgs.buildFHSEnvOverlay {
pname = "opentitan";
version = "dev";
targetPkgs = _:
with pkgs;
[
Expand Down Expand Up @@ -85,12 +86,6 @@ in
++ extraPkgs;
extraOutputsToInstall = ["dev"];

extraBwrapArgs = [
# OpenSSL included in the Python downloaded by Bazel makes use of these paths.
"--symlink ${pkgs.openssl.out}/etc/ssl/openssl.cnf /etc/ssl/openssl.cnf"
"--symlink /etc/ssl/certs/ca-certificates.crt /etc/ssl/cert.pem"
];

profile = ''
# Workaround bazel bug: https://github.com/bazelbuild/bazel/issues/23217
export TMPDIR=/tmp
Expand Down

0 comments on commit e83ca6c

Please sign in to comment.