mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
git-lfs: fix cross compilation
Hides the `installShellCompletion` behind a `stdenv.buildPlatform.canExecute stdenv.hostPlatform` guard. cf https://github.com/NixOS/nixpkgs/issues/308283
This commit is contained in:
parent
eae1f31968
commit
03401f0200
@ -1,4 +1,4 @@
|
||||
{ lib, buildGoModule, fetchFromGitHub, asciidoctor, installShellFiles, git, testers, git-lfs }:
|
||||
{ lib, buildGoModule, fetchFromGitHub, asciidoctor, installShellFiles, git, testers, git-lfs, stdenv }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "git-lfs";
|
||||
@ -39,6 +39,7 @@ buildGoModule rec {
|
||||
|
||||
postInstall = ''
|
||||
installManPage man/man*/*
|
||||
'' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd git-lfs \
|
||||
--bash <($out/bin/git-lfs completion bash) \
|
||||
--fish <($out/bin/git-lfs completion fish) \
|
||||
|
Loading…
Reference in New Issue
Block a user