Merge pull request #215289 from marsam/update-ledger

ledger: 3.2.1 -> 3.3.0

authored by

Mario Rodas and committed by
GitHub
9eedb677 c0715b93

+14 -27
+14 -27
pkgs/applications/office/ledger/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub, cmake, boost, gmp, mpfr, libedit, python3 2 - , fetchpatch, installShellFiles, texinfo, gnused, usePython ? true }: 3 4 stdenv.mkDerivation rec { 5 pname = "ledger"; 6 - version = "3.2.1"; 7 8 src = fetchFromGitHub { 9 owner = "ledger"; 10 repo = "ledger"; 11 rev = "v${version}"; 12 - sha256 = "0x6jxwss3wwzbzlwmnwb8yzjk8f9wfawif4f1b74z2qg6hc4r7f6"; 13 }; 14 15 - outputs = [ "out" "dev" "py" ]; 16 17 buildInputs = [ 18 - (boost.override { enablePython = usePython; python = python3; }) 19 gmp mpfr libedit gnused 20 - ] ++ lib.optional usePython python3; 21 22 nativeBuildInputs = [ cmake texinfo installShellFiles ]; 23 24 cmakeFlags = [ 25 "-DCMAKE_INSTALL_LIBDIR=lib" 26 "-DBUILD_DOCS:BOOL=ON" 27 - (lib.optionalString usePython "-DUSE_PYTHON=true") 28 ]; 29 30 # by default, it will query the python interpreter for it's sitepackages location ··· 34 --replace 'DESTINATION ''${Python_SITEARCH}' 'DESTINATION "${placeholder "py"}/${python3.sitePackages}"' 35 ''; 36 37 - patches = [ 38 - # Add support for $XDG_CONFIG_HOME. Remove with the next release 39 - (fetchpatch { 40 - url = "https://github.com/ledger/ledger/commit/c79674649dee7577d6061e3d0776922257520fd0.patch"; 41 - sha256 = "sha256-vwVQnY9EUCXPzhDJ4PSOmQStb9eF6H0yAOiEmL6sAlk="; 42 - excludes = [ "doc/NEWS.md" ]; 43 - }) 44 - 45 - # Fix included bug with boost >= 1.76. Remove with the next release 46 - (fetchpatch { 47 - url = "https://github.com/ledger/ledger/commit/1cb9b84fdecc5604bd1172cdd781859ff3871a52.patch"; 48 - sha256 = "sha256-ipVkRcTmnEvpfyPgMzLVJ9Sz8QxHeCURQI5dX8xh758="; 49 - excludes = [ "test/regress/*" ]; 50 - }) 51 - ]; 52 - 53 installTargets = [ "doc" "install" ]; 54 55 postInstall = '' ··· 57 ''; 58 59 meta = with lib; { 60 - homepage = "https://ledger-cli.org/"; 61 description = "A double-entry accounting system with a command-line reporting interface"; 62 license = licenses.bsd3; 63 - 64 longDescription = '' 65 Ledger is a powerful, double-entry accounting system that is accessed 66 from the UNIX command-line. This may put off some users, as there is 67 no flashy UI, but for those who want unparalleled reporting access to 68 their data, there really is no alternative. 69 ''; 70 - 71 platforms = platforms.all; 72 maintainers = with maintainers; [ jwiegley marsam ]; 73 };
··· 1 + { stdenv, lib, fetchFromGitHub, cmake, boost, gmp, mpfr, libedit, python3, gpgme 2 + , installShellFiles, texinfo, gnused, usePython ? false, gpgmeSupport ? false }: 3 4 stdenv.mkDerivation rec { 5 pname = "ledger"; 6 + version = "3.3.0"; 7 8 src = fetchFromGitHub { 9 owner = "ledger"; 10 repo = "ledger"; 11 rev = "v${version}"; 12 + hash = "sha256-0hN6Hpmgwb3naV2K1fxX0OyH0IyCQAh1nZ9TMNAutic="; 13 }; 14 15 + outputs = [ "out" "dev" ] ++ lib.optionals usePython [ "py" ]; 16 17 buildInputs = [ 18 gmp mpfr libedit gnused 19 + ] ++ lib.optionals gpgmeSupport [ 20 + gpgme 21 + ] ++ (if usePython 22 + then [ python3 (boost.override { enablePython = true; python = python3; }) ] 23 + else [ boost ]); 24 25 nativeBuildInputs = [ cmake texinfo installShellFiles ]; 26 27 cmakeFlags = [ 28 "-DCMAKE_INSTALL_LIBDIR=lib" 29 "-DBUILD_DOCS:BOOL=ON" 30 + "-DUSE_PYTHON:BOOL=${if usePython then "ON" else "OFF"}" 31 + "-DUSE_GPGME:BOOL=${if gpgmeSupport then "ON" else "OFF"}" 32 ]; 33 34 # by default, it will query the python interpreter for it's sitepackages location ··· 38 --replace 'DESTINATION ''${Python_SITEARCH}' 'DESTINATION "${placeholder "py"}/${python3.sitePackages}"' 39 ''; 40 41 installTargets = [ "doc" "install" ]; 42 43 postInstall = '' ··· 45 ''; 46 47 meta = with lib; { 48 description = "A double-entry accounting system with a command-line reporting interface"; 49 + homepage = "https://www.ledger-cli.org/"; 50 + changelog = "https://github.com/ledger/ledger/raw/v${version}/NEWS.md"; 51 license = licenses.bsd3; 52 longDescription = '' 53 Ledger is a powerful, double-entry accounting system that is accessed 54 from the UNIX command-line. This may put off some users, as there is 55 no flashy UI, but for those who want unparalleled reporting access to 56 their data, there really is no alternative. 57 ''; 58 platforms = platforms.all; 59 maintainers = with maintainers; [ jwiegley marsam ]; 60 };