cilium-cli: use writableTmpDirAsHomeHook
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
cilium-cli,
|
||||
fetchFromGitHub,
|
||||
installShellFiles,
|
||||
writableTmpDirAsHomeHook,
|
||||
testers,
|
||||
}:
|
||||
|
||||
@@ -21,6 +22,10 @@ buildGoModule (finalAttrs: {
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
# Required to workaround install check error:
|
||||
# 2022/06/25 10:36:22 Unable to start gops: mkdir /homeless-shelter: permission denied
|
||||
nativeInstallCheckInputs = [ writableTmpDirAsHomeHook ];
|
||||
|
||||
vendorHash = null;
|
||||
|
||||
subPackages = [ "cmd/cilium" ];
|
||||
@@ -31,10 +36,6 @@ buildGoModule (finalAttrs: {
|
||||
"-X=github.com/cilium/cilium/cilium-cli/defaults.CLIVersion=${finalAttrs.version}"
|
||||
];
|
||||
|
||||
# Required to workaround install check error:
|
||||
# 2022/06/25 10:36:22 Unable to start gops: mkdir /homeless-shelter: permission denied
|
||||
env.HOME = "$TMPDIR";
|
||||
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd cilium \
|
||||
--bash <($out/bin/cilium completion bash) \
|
||||
|
||||
Reference in New Issue
Block a user