broot: disable nag about installing shell functions

wip/yesman
Daniël de Kok 4 years ago
parent 9e6ee27597
commit b2b779f680
  1. 17
      pkgs/tools/misc/broot/default.nix

@ -1,4 +1,12 @@
{ stdenv, rustPlatform, fetchFromGitHub, coreutils, libiconv, Security, installShellFiles }:
{ stdenv
, rustPlatform
, fetchFromGitHub
, installShellFiles
, makeWrapper
, coreutils
, libiconv
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "broot";
@ -13,7 +21,7 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "18b4lh5x25mbhpffva8ygzm5ad00svm1c3r83vfw0l2f61m7vyjh";
nativeBuildInputs = [ installShellFiles ];
nativeBuildInputs = [ makeWrapper installShellFiles ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ];
@ -27,6 +35,11 @@ rustPlatform.buildRustPackage rec {
'';
postInstall = ''
# Do not nag users about installing shell integration, since
# it is impure.
wrapProgram $out/bin/broot \
--set BR_INSTALL no
# install shell completion files
OUT_DIR=$releaseDir/build/broot-*/out

Loading…
Cancel
Save