diff options
author | superherointj <5861043+superherointj@users.noreply.github.com> | 2022-08-13 14:46:53 -0300 |
---|---|---|
committer | superherointj <5861043+superherointj@users.noreply.github.com> | 2022-08-13 14:48:07 -0300 |
commit | dbc3c159e925930755009d4dbec590665feba52b (patch) | |
tree | 5e6ab90373ca60207e218b7f29610e860100bbf4 /pkgs/applications/networking/cluster/fluxcd | |
parent | 8ef646175a75d77f0e7d24eba67cde905baaff03 (diff) |
fluxcd: fix cross compilation
Diffstat (limited to 'pkgs/applications/networking/cluster/fluxcd')
-rw-r--r-- | pkgs/applications/networking/cluster/fluxcd/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/applications/networking/cluster/fluxcd/default.nix b/pkgs/applications/networking/cluster/fluxcd/default.nix index d98601f5aa0a5..89772f9aa7bec 100644 --- a/pkgs/applications/networking/cluster/fluxcd/default.nix +++ b/pkgs/applications/networking/cluster/fluxcd/default.nix @@ -1,4 +1,4 @@ -{ lib, buildGoModule, fetchFromGitHub, fetchzip, installShellFiles }: +{ lib, buildGoModule, fetchFromGitHub, fetchzip, installShellFiles, stdenv }: let version = "0.32.0"; @@ -46,7 +46,7 @@ in buildGoModule rec { $out/bin/flux --version | grep ${version} > /dev/null ''; - postInstall = '' + postInstall = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) '' for shell in bash fish zsh; do $out/bin/flux completion $shell > flux.$shell installShellCompletion flux.$shell |