Commit 3ac2687c authored by Jörg Thalheim's avatar Jörg Thalheim
Browse files

shiori: fix cross-compilation

parent 84a8354c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
{ lib, buildGoModule, fetchFromGitHub, nixosTests, installShellFiles }:
{ lib, buildGoModule, fetchFromGitHub, nixosTests, installShellFiles, stdenv }:

buildGoModule rec {
  pname = "shiori";
@@ -16,7 +16,7 @@ buildGoModule rec {
  };

  nativeBuildInputs = [ installShellFiles ];
  postInstall = ''
  postInstall = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
    installShellCompletion --cmd shiori \
      --bash <($out/bin/shiori completion bash) \
      --fish <($out/bin/shiori completion fish) \