3
0
Fork 0
forked from mirrors/nixpkgs

fluxcd: fix cross compilation

This commit is contained in:
superherointj 2022-08-13 14:46:53 -03:00
parent 8ef646175a
commit dbc3c159e9

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