summary refs log tree commit diff
path: root/pkgs/tools/misc/broot
diff options
context:
space:
mode:
authorDaniël de Kok <me@danieldk.eu>2020-08-11 20:58:38 +0200
committerDaniël de Kok <me@danieldk.eu>2020-08-11 20:58:38 +0200
commitb2b779f680479d634691c4c8ce2baaaf48444515 (patch)
treeb181a8b8047ac3695e8353fb933822e94b6243b8 /pkgs/tools/misc/broot
parent9e6ee275975d1a8169f7bf6c2e3a46608c033d78 (diff)
downloadnixpkgs-b2b779f680479d634691c4c8ce2baaaf48444515.tar
nixpkgs-b2b779f680479d634691c4c8ce2baaaf48444515.tar.gz
nixpkgs-b2b779f680479d634691c4c8ce2baaaf48444515.tar.bz2
nixpkgs-b2b779f680479d634691c4c8ce2baaaf48444515.tar.lz
nixpkgs-b2b779f680479d634691c4c8ce2baaaf48444515.tar.xz
nixpkgs-b2b779f680479d634691c4c8ce2baaaf48444515.tar.zst
nixpkgs-b2b779f680479d634691c4c8ce2baaaf48444515.zip
broot: disable nag about installing shell functions
Diffstat (limited to 'pkgs/tools/misc/broot')
-rw-r--r--pkgs/tools/misc/broot/default.nix17
1 files changed, 15 insertions, 2 deletions
diff --git a/pkgs/tools/misc/broot/default.nix b/pkgs/tools/misc/broot/default.nix
index bafe507a37c..ffbc0ff12df 100644
--- a/pkgs/tools/misc/broot/default.nix
+++ b/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