Merge pull request #186472 from superherointj/package-fluxcd-fix-crosspkgs

fluxcd: fix cross compilation
This commit is contained in:
superherointj 2022-08-13 19:19:57 -03:00 committed by GitHub
commit f137f4bf64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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