Merge pull request #256091 from erikarvstedt/bitcoin-shell-completions

bitcoin: add shell completions

authored by Pavol Rusnak and committed by GitHub fa6cdce1 85fd8746

+15 -2
+15 -2
pkgs/applications/blockchains/bitcoin/default.nix
··· 3 , fetchurl 4 , autoreconfHook 5 , pkg-config 6 , util-linux 7 , hexdump 8 , autoSignDarwinBinariesHook ··· 43 }; 44 45 nativeBuildInputs = 46 - [ autoreconfHook pkg-config ] 47 ++ lib.optionals stdenv.isLinux [ util-linux ] 48 ++ lib.optionals stdenv.isDarwin [ hexdump ] 49 ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ autoSignDarwinBinariesHook ] ··· 53 ++ lib.optionals withWallet [ db48 sqlite ] 54 ++ lib.optionals withGui [ qrencode qtbase qttools ]; 55 56 - postInstall = lib.optionalString withGui '' 57 install -Dm644 ${desktop} $out/share/applications/bitcoin-qt.desktop 58 substituteInPlace $out/share/applications/bitcoin-qt.desktop --replace "Icon=bitcoin128" "Icon=bitcoin" 59 install -Dm644 share/pixmaps/bitcoin256.png $out/share/pixmaps/bitcoin.png
··· 3 , fetchurl 4 , autoreconfHook 5 , pkg-config 6 + , installShellFiles 7 , util-linux 8 , hexdump 9 , autoSignDarwinBinariesHook ··· 44 }; 45 46 nativeBuildInputs = 47 + [ autoreconfHook pkg-config installShellFiles ] 48 ++ lib.optionals stdenv.isLinux [ util-linux ] 49 ++ lib.optionals stdenv.isDarwin [ hexdump ] 50 ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ autoSignDarwinBinariesHook ] ··· 54 ++ lib.optionals withWallet [ db48 sqlite ] 55 ++ lib.optionals withGui [ qrencode qtbase qttools ]; 56 57 + postInstall = '' 58 + installShellCompletion --cmd bitcoin-cli --bash contrib/completions/bash/bitcoin-cli.bash-completion 59 + installShellCompletion --cmd bitcoind --bash contrib/completions/bash/bitcoind.bash-completion 60 + installShellCompletion --cmd bitcoin-tx --bash contrib/completions/bash/bitcoin-tx.bash-completion 61 + 62 + installShellCompletion --fish contrib/completions/fish/bitcoin-cli.fish 63 + installShellCompletion --fish contrib/completions/fish/bitcoind.fish 64 + installShellCompletion --fish contrib/completions/fish/bitcoin-tx.fish 65 + installShellCompletion --fish contrib/completions/fish/bitcoin-util.fish 66 + installShellCompletion --fish contrib/completions/fish/bitcoin-wallet.fish 67 + '' + lib.optionalString withGui '' 68 + installShellCompletion --fish contrib/completions/fish/bitcoin-qt.fish 69 + 70 install -Dm644 ${desktop} $out/share/applications/bitcoin-qt.desktop 71 substituteInPlace $out/share/applications/bitcoin-qt.desktop --replace "Icon=bitcoin128" "Icon=bitcoin" 72 install -Dm644 share/pixmaps/bitcoin256.png $out/share/pixmaps/bitcoin.png