frogmouth: implement a more targeted patch for switching from xdg to xdg-base-dirs

Thanks to @eclairevoyant for suggesting something more minimal.
This commit is contained in:
Philip Taron 2023-10-24 16:49:46 -07:00
parent e2aa42c845
commit e1e138219b
No known key found for this signature in database
2 changed files with 6 additions and 1029 deletions

View File

@ -15,7 +15,12 @@ python3.pkgs.buildPythonApplication rec {
hash = "sha256-TMCeIwMEoNDQV9iue4XrdYQMmwofXDvdMMLTZKILQ9Q=";
};
patches = [ ./use-xdg-base-dirs.patch ];
# Per <https://github.com/srstevenson/xdg-base-dirs/tree/6.0.0#xdg-base-dirs>, the package is
# renamed from `xdg` to `xdg_base_dirs`, but upstream isn't amenable to performing that rename.
# See <https://github.com/Textualize/frogmouth/pull/59>. So this is a minimal fix.
postUnpack = ''
sed -i -e "s,from xdg import,from xdg_base_dirs import," $sourceRoot/frogmouth/data/{config,data_directory}.py
'';
nativeBuildInputs = [
python3.pkgs.poetry-core

File diff suppressed because it is too large Load Diff