fix build issue in `nix-shell --pure` (#190)

Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
This commit is contained in:
Iosmanthus Teng 2021-06-09 09:48:21 +08:00 committed by GitHub
parent f76a267f5b
commit 3be4daf78c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -3,7 +3,12 @@
(
pkgs.buildFHSUserEnv {
name = "client-java-shell";
targetPkgs = pkgs: with pkgs;[ maven openjdk8 git ];
runScript = "bash";
targetPkgs = pkgs: with pkgs;[ git maven openjdk8 ];
runScript = ''
env \
GIT_SSL_CAINFO=/etc/ssl/certs/ca-certificates.crt \
JAVA_HOME=${pkgs.openjdk8}/lib/openjdk \
bash
'';
}
).env