From e0cda3708af3a38397f4f0f1c3d8a3fbad222c48 Mon Sep 17 00:00:00 2001 From: Jason Felice Date: Tue, 6 Jul 2021 10:58:17 -0400 Subject: [PATCH] vault, vault-bin: fix build for darwin Closes #129443 --- pkgs/tools/security/vault/default.nix | 4 ++-- pkgs/tools/security/vault/vault-bin.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/security/vault/default.nix b/pkgs/tools/security/vault/default.nix index 89900ff313b4..66a6d5e63e85 100644 --- a/pkgs/tools/security/vault/default.nix +++ b/pkgs/tools/security/vault/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchFromGitHub, buildGoPackage, installShellFiles, nixosTests +{ stdenv, lib, fetchFromGitHub, buildGoPackage, installShellFiles, nixosTests , makeWrapper , gawk , glibc @@ -26,7 +26,7 @@ buildGoPackage rec { postInstall = '' echo "complete -C $out/bin/vault vault" > vault.bash installShellCompletion vault.bash - + '' + lib.optionalString stdenv.isLinux '' wrapProgram $out/bin/vault \ --prefix PATH ${lib.makeBinPath [ gawk glibc ]} ''; diff --git a/pkgs/tools/security/vault/vault-bin.nix b/pkgs/tools/security/vault/vault-bin.nix index 6ae4845346aa..68df6e557f61 100644 --- a/pkgs/tools/security/vault/vault-bin.nix +++ b/pkgs/tools/security/vault/vault-bin.nix @@ -40,10 +40,10 @@ in stdenv.mkDerivation { mkdir -p $out/bin $out/share/bash-completion/completions mv vault $out/bin echo "complete -C $out/bin/vault vault" > $out/share/bash-completion/completions/vault - + '' + lib.optionalString stdenv.isLinux '' wrapProgram $out/bin/vault \ --prefix PATH ${lib.makeBinPath [ gawk glibc ]} - + '' + '' runHook postInstall '';