mirror of
https://github.com/tweag/gomod2nix.git
synced 2024-11-08 11:39:11 +00:00
gomod2nix: Only generate completions if we are not cross compiling
This commit is contained in:
parent
d404767bec
commit
f8646af3f2
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ buildGoApplication {
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
||||||
|
|
||||||
postInstall = lib.optionalString (stdenv.hostPlatform == stdenv.targetPlatform) ''
|
postInstall = lib.optionalString (stdenv.buildPlatform == stdenv.targetPlatform) ''
|
||||||
$out/bin/gomod2nix completion bash > gomod2nix.bash
|
$out/bin/gomod2nix completion bash > gomod2nix.bash
|
||||||
$out/bin/gomod2nix completion fish > gomod2nix.fish
|
$out/bin/gomod2nix completion fish > gomod2nix.fish
|
||||||
$out/bin/gomod2nix completion zsh > _gomod2nix
|
$out/bin/gomod2nix completion zsh > _gomod2nix
|
||||||
|
|
Loading…
Reference in a new issue