ledger: add patch to xdg support

This commit is contained in:
Mario Rodas 2022-05-08 04:20:00 +00:00
parent 643b95aa35
commit c88d3ed4bf

View File

@ -1,5 +1,5 @@
{ stdenv, lib, fetchFromGitHub, cmake, boost, gmp, mpfr, libedit, python3
, texinfo, gnused, usePython ? true }:
, fetchpatch, texinfo, gnused, usePython ? true }:
stdenv.mkDerivation rec {
pname = "ledger";
@ -34,6 +34,15 @@ stdenv.mkDerivation rec {
--replace 'DESTINATION ''${Python_SITEARCH}' 'DESTINATION "${python3.sitePackages}"'
'';
patches = [
# Add support for $XDG_CONFIG_HOME. Remove with the next release
(fetchpatch {
url = "https://github.com/ledger/ledger/commit/c79674649dee7577d6061e3d0776922257520fd0.patch";
sha256 = "sha256-vwVQnY9EUCXPzhDJ4PSOmQStb9eF6H0yAOiEmL6sAlk=";
excludes = [ "doc/NEWS.md" ];
})
];
installTargets = [ "doc" "install" ];
meta = with lib; {