Merge pull request #286124 from toastal/abduco-xdg
adbuco: add bug/feature patches, add mirror
This commit is contained in:
commit
eeb334cc28
1 changed files with 38 additions and 8 deletions
|
@ -1,14 +1,18 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, writeText, conf ? null }:
|
{ lib, stdenv, fetchpatch, fetchzip, writeText, conf ? null }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
|
rev = "8c32909a159aaa9484c82b71f05b7a73321eb491";
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation {
|
||||||
pname = "abduco";
|
pname = "abduco";
|
||||||
version = "2020-04-30";
|
version = "unstable-2020-04-30";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchzip {
|
||||||
owner = "martanne";
|
urls = [
|
||||||
repo = "abduco";
|
"https://github.com/martanne/abduco/archive/${rev}.tar.gz"
|
||||||
rev = "8c32909a159aaa9484c82b71f05b7a73321eb491";
|
"https://git.sr.ht/~martanne/abduco/archive/${rev}.tar.gz"
|
||||||
sha256 = "0a3p8xljhpk7zh203s75248blfir15smgw5jmszwbmdpy4mqzd53";
|
];
|
||||||
|
hash = "sha256-o7SPK/G31cW/rrLwV3UJOTq6EBHl6AEE/GdeKGlHdyg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
preBuild = lib.optionalString (conf != null)
|
preBuild = lib.optionalString (conf != null)
|
||||||
|
@ -17,6 +21,32 @@ stdenv.mkDerivation rec {
|
||||||
installFlags = [ "install-completion" ];
|
installFlags = [ "install-completion" ];
|
||||||
CFLAGS = lib.optionalString stdenv.isDarwin "-D_DARWIN_C_SOURCE";
|
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=";
|
||||||
|
})
|
||||||
|
|
||||||
|
# “fix bug where attaching to dead session won't give underlying exit code”
|
||||||
|
# https://github.com/martanne/abduco/pull/45
|
||||||
|
(fetchpatch {
|
||||||
|
name = "exit-code-when-attaching-to-dead-session";
|
||||||
|
url = "https://github.com/martanne/abduco/commit/972ca8ab949ee342569dbd66b47cc4a17b28247b.patch";
|
||||||
|
sha256 = "sha256-8hios0iKYDOmt6Bi5NNM9elTflGudnG2xgPF1pSkHI0=";
|
||||||
|
})
|
||||||
|
|
||||||
|
# “report pixel sizes to child processes that use ioctl(0, TIOCGWINSZ, ...)”
|
||||||
|
# used for kitty & other terminals that display images
|
||||||
|
# https://github.com/martanne/abduco/pull/62
|
||||||
|
(fetchpatch {
|
||||||
|
name = "report-pixel-sizes-to-child-processes";
|
||||||
|
url = "https://github.com/martanne/abduco/commit/a1e222308119b3251f00b42e1ddff74a385d4249.patch";
|
||||||
|
sha256 = "sha256-eiF0A4IqJrrvXxjBYtltuVNpxQDv/iQPO+K7Y8hWBGg=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://brain-dump.org/projects/abduco";
|
homepage = "http://brain-dump.org/projects/abduco";
|
||||||
license = licenses.isc;
|
license = licenses.isc;
|
||||||
|
|
Loading…
Reference in a new issue