From dbc3c159e925930755009d4dbec590665feba52b Mon Sep 17 00:00:00 2001 From: superherointj <5861043+superherointj@users.noreply.github.com> Date: Sat, 13 Aug 2022 14:46:53 -0300 Subject: [PATCH] fluxcd: fix cross compilation --- pkgs/applications/networking/cluster/fluxcd/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/fluxcd/default.nix b/pkgs/applications/networking/cluster/fluxcd/default.nix index d98601f5aa0a..89772f9aa7be 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