ledger: install bash completion

main
Mario Rodas 2 years ago
parent c88d3ed4bf
commit 1d5f520da8
  1. 8
      pkgs/applications/office/ledger/default.nix

@ -1,5 +1,5 @@
{ stdenv, lib, fetchFromGitHub, cmake, boost, gmp, mpfr, libedit, python3 { stdenv, lib, fetchFromGitHub, cmake, boost, gmp, mpfr, libedit, python3
, fetchpatch, texinfo, gnused, usePython ? true }: , fetchpatch, installShellFiles, texinfo, gnused, usePython ? true }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ledger"; pname = "ledger";
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
gmp mpfr libedit gnused gmp mpfr libedit gnused
] ++ lib.optional usePython python3; ] ++ lib.optional usePython python3;
nativeBuildInputs = [ cmake texinfo ]; nativeBuildInputs = [ cmake texinfo installShellFiles ];
cmakeFlags = [ cmakeFlags = [
"-DCMAKE_INSTALL_LIBDIR=lib" "-DCMAKE_INSTALL_LIBDIR=lib"
@ -45,6 +45,10 @@ stdenv.mkDerivation rec {
installTargets = [ "doc" "install" ]; installTargets = [ "doc" "install" ];
postInstall = ''
installShellCompletion --cmd ledger --bash $src/contrib/ledger-completion.bash
'';
meta = with lib; { meta = with lib; {
homepage = "https://ledger-cli.org/"; homepage = "https://ledger-cli.org/";
description = "A double-entry accounting system with a command-line reporting interface"; description = "A double-entry accounting system with a command-line reporting interface";

Loading…
Cancel
Save