adbuco: patch to use XDG directory scheme by default

This eliminates clutter in the user’s $HOME directory
This commit is contained in:
toastal 2024-02-04 01:45:20 +07:00
parent ecbb6c4c91
commit 1cd94ec066

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, writeText, conf ? null }:
{ lib, stdenv, fetchFromGitHub, fetchpatch, writeText, conf ? null }:
stdenv.mkDerivation rec {
pname = "abduco";
@ -17,6 +17,15 @@ stdenv.mkDerivation rec {
installFlags = [ "install-completion" ];
CFLAGS = lib.optionalString stdenv.isDarwin "-D_DARWIN_C_SOURCE";
patches = [
# https://github.com/martanne/abduco/pull/22
(fetchpatch {
name = "use-XDG-directory-scheme-by-default";
url = "https://github.com/martanne/abduco/commit/0e9a00312ac9777edcb169122144762e3611287b.patch";
sha256 = "sha256-4NkIflbRkUpS5XTM/fxBaELpvlZ4S5lecRa8jk0XC9g=";
})
];
meta = with lib; {
homepage = "http://brain-dump.org/projects/abduco";
license = licenses.isc;