From 518f6ee7e7cd17dbdb8c3da73a4938b0954d8fa3 Mon Sep 17 00:00:00 2001 From: FliegendeWurst Date: Thu, 10 Apr 2025 11:22:36 +0200 Subject: [PATCH] pscale: fix cross build --- pkgs/by-name/ps/pscale/package.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ps/pscale/package.nix b/pkgs/by-name/ps/pscale/package.nix index ffbd140a6627..8a6829654626 100644 --- a/pkgs/by-name/ps/pscale/package.nix +++ b/pkgs/by-name/ps/pscale/package.nix @@ -1,4 +1,5 @@ { + stdenv, buildGoModule, fetchFromGitHub, installShellFiles, @@ -30,7 +31,7 @@ buildGoModule rec { nativeBuildInputs = [ installShellFiles ]; - postInstall = '' + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd pscale \ --bash <($out/bin/pscale completion bash) \ --fish <($out/bin/pscale completion fish) \