mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 03:53:47 +00:00
cri-tools: fix cross compilation
This commit is contained in:
parent
08e37800ff
commit
67adae7a86
@ -1,4 +1,5 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
@ -30,11 +31,12 @@ buildGoModule rec {
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
make install BINDIR=$out/bin
|
||||
|
||||
'' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
for shell in bash fish zsh; do
|
||||
$out/bin/crictl completion $shell > crictl.$shell
|
||||
installShellCompletion crictl.$shell
|
||||
installShellCompletion --cmd crictl \
|
||||
--$shell <($out/bin/crictl completion $shell)
|
||||
done
|
||||
'' + ''
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user