mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
parent
4116dd8256
commit
e0cda3708a
@ -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 ]}
|
||||
'';
|
||||
|
@ -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
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user