Skip to content

Commit 605fb1e

Browse files
committed
aerc: 0.18.2 -> 0.19.0
1 parent 92cebeb commit 605fb1e

File tree

2 files changed

+68
-24
lines changed

2 files changed

+68
-24
lines changed

pkgs/by-name/ae/aerc/package.nix

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414

1515
buildGoModule rec {
1616
pname = "aerc";
17-
version = "0.18.2";
17+
version = "0.19.0";
1818

1919
src = fetchFromSourcehut {
2020
owner = "~rjarry";
2121
repo = "aerc";
2222
rev = version;
23-
hash = "sha256-J4W7ynJ5DpE97sILENNt6eya04aiq9DWBhlytsVmZHg=";
23+
hash = "sha256-YlpR85jB6Il3UW4MTaf8pkilRVjkO0q/D/Yu+OiBX6Y=";
2424
};
2525

2626
proxyVendor = true;
27-
vendorHash = "sha256-STQzc25gRozNHKjjYb8J8CL5WMhnx+nTJOGbuFmUYSU=";
27+
vendorHash = "sha256-WowRlAzyrfZi27JzskIDberiYt9PQkuS6H3hKqUP9qo=";
2828

2929
nativeBuildInputs = [
3030
scdoc
@@ -33,18 +33,13 @@ buildGoModule rec {
3333

3434
patches = [
3535
./runtime-libexec.patch
36-
37-
# patch to fix a encoding problem with gpg signed messages
38-
(fetchpatch {
39-
url = "https://git.sr.ht/~rjarry/aerc/commit/7346d20.patch";
40-
hash = "sha256-OCm8BcovYN2IDSgslZklQxkGVkSYQ8HLCrf2+DRB2mM=";
41-
})
4236
];
4337

4438
postPatch = ''
4539
substituteAllInPlace config/aerc.conf
4640
substituteAllInPlace config/config.go
4741
substituteAllInPlace doc/aerc-config.5.scd
42+
substituteAllInPlace doc/aerc-templates.7.scd
4843
4944
# Prevent buildGoModule from trying to build this
5045
rm contrib/linters.go

pkgs/by-name/ae/aerc/runtime-libexec.patch

Lines changed: 64 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/config/aerc.conf b/config/aerc.conf
2-
index 7d33b43..4315f0e 100644
2+
index fbc1f3ba..9eea2b81 100644
33
--- a/config/aerc.conf
44
+++ b/config/aerc.conf
5-
@@ -202,8 +202,7 @@
5+
@@ -301,8 +301,7 @@
66
#
77
# ${XDG_CONFIG_HOME:-~/.config}/aerc/stylesets
88
# ${XDG_DATA_HOME:-~/.local/share}/aerc/stylesets
@@ -12,7 +12,18 @@ index 7d33b43..4315f0e 100644
1212
#
1313
#stylesets-dirs=
1414

15-
@@ -547,8 +546,7 @@ message/rfc822=colorize
15+
@@ -741,8 +740,8 @@
16+
# ${XDG_DATA_HOME:-~/.local/share}/aerc/filters
17+
# $PREFIX/libexec/aerc/filters
18+
# $PREFIX/share/aerc/filters
19+
-# /usr/libexec/aerc/filters
20+
-# /usr/share/aerc/filters
21+
+# @out@/libexec/aerc/filters
22+
+# @out@/share/aerc/filters
23+
#
24+
# If you want to run a program in your default $PATH which has the same name
25+
# as a builtin filter (e.g. /usr/bin/colorize), use its absolute path.
26+
@@ -845,8 +844,7 @@ text/html=! html
1627
#
1728
# ${XDG_CONFIG_HOME:-~/.config}/aerc/templates
1829
# ${XDG_DATA_HOME:-~/.local/share}/aerc/templates
@@ -23,10 +34,10 @@ index 7d33b43..4315f0e 100644
2334
#template-dirs=
2435

2536
diff --git a/config/config.go b/config/config.go
26-
index d70bcfe..c19e59a 100644
37+
index 14c4b233..9f305ffd 100644
2738
--- a/config/config.go
2839
+++ b/config/config.go
29-
@@ -54,10 +54,8 @@ func buildDefaultDirs() []string {
40+
@@ -46,10 +46,8 @@ func buildDefaultDirs() []string {
3041
}
3142

3243
// Add fixed fallback locations
@@ -40,10 +51,19 @@ index d70bcfe..c19e59a 100644
4051
return defaultDirs
4152
}
4253
diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd
43-
index 9e1f8a3..694abbc 100644
54+
index 1e3daaa9..cd118be0 100644
4455
--- a/doc/aerc-config.5.scd
4556
+++ b/doc/aerc-config.5.scd
46-
@@ -300,8 +300,7 @@ These options are configured in the *[ui]* section of _aerc.conf_.
57+
@@ -13,7 +13,7 @@ _aerc_, which defaults to _~/.config/aerc_. Alternate files can be specified via
58+
command line arguments, see *aerc*(1).
59+
60+
Examples of these config files are typically included with your installation of
61+
-aerc and are usually installed in _/usr/share/aerc_.
62+
+aerc and are usually installed in _@out@/share/aerc_.
63+
64+
Each file uses the ini format, and consists of sections with keys and values.
65+
A line beginning with _#_ is considered a comment and ignored, as are empty
66+
@@ -386,8 +386,7 @@ These options are configured in the *[ui]* section of _aerc.conf_.
4767
```
4868
${XDG_CONFIG_HOME:-~/.config}/aerc/stylesets
4969
${XDG_DATA_HOME:-~/.local/share}/aerc/stylesets
@@ -53,7 +73,36 @@ index 9e1f8a3..694abbc 100644
5373
```
5474

5575
*styleset-name* = _<string>_
56-
@@ -900,8 +899,7 @@ These options are configured in the *[templates]* section of _aerc.conf_.
76+
@@ -1019,7 +1018,7 @@ will be set to the terminal TTY. The filter is expected to implement its own
77+
paging.
78+
79+
aerc ships with some default filters installed in the libexec directory (usually
80+
-_/usr/libexec/aerc/filters_). Note that these may have additional dependencies
81+
+_@out@/libexec/aerc/filters_). Note that these may have additional dependencies
82+
that aerc does not have alone.
83+
84+
The filter commands are invoked with _sh -c command_. The following folders are
85+
@@ -1031,8 +1030,8 @@ ${XDG_CONFIG_HOME:-~/.config}/aerc/filters
86+
${XDG_DATA_HOME:-~/.local/share}/aerc/filters
87+
$PREFIX/libexec/aerc/filters
88+
$PREFIX/share/aerc/filters
89+
-/usr/libexec/aerc/filters
90+
-/usr/share/aerc/filters
91+
+@out@/libexec/aerc/filters
92+
+@out@/share/aerc/filters
93+
```
94+
95+
If you want to run a program in your default *$PATH* which has the same
96+
@@ -1370,7 +1369,7 @@ of the template name. The available symbols and functions are described in
97+
*aerc-templates*(7).
98+
99+
aerc ships with some default templates installed in the share directory (usually
100+
-_/usr/share/aerc/templates_).
101+
+_@out@/share/aerc/templates_).
102+
103+
These options are configured in the *[templates]* section of _aerc.conf_.
104+
105+
@@ -1382,8 +1381,7 @@ These options are configured in the *[templates]* section of _aerc.conf_.
57106
```
58107
${XDG_CONFIG_HOME:-~/.config}/aerc/templates
59108
${XDG_DATA_HOME:-~/.local/share}/aerc/templates
@@ -64,19 +113,19 @@ index 9e1f8a3..694abbc 100644
64113

65114
*new-message* = _<template_name>_
66115
diff --git a/doc/aerc-templates.7.scd b/doc/aerc-templates.7.scd
67-
index ae9bc6d..5f42b14 100644
116+
index a6deb584..4f91869c 100644
68117
--- a/doc/aerc-templates.7.scd
69118
+++ b/doc/aerc-templates.7.scd
70-
@@ -319,7 +319,7 @@ aerc provides the following additional functions:
71-
Execute external command, provide the second argument to its stdin.
119+
@@ -398,7 +398,7 @@ aerc provides the following additional functions:
120+
Attaches a file to the message being composed.
72121

73122
```
74-
- {{exec `/usr/libexec/aerc/filters/html` .OriginalText}}
75-
+ {{exec `@out@/libexec/aerc/filters/html` .OriginalText}}
123+
- {{.Attach '/usr/libexec/aerc/filters/html'}}
124+
+ {{.Attach '@out@/libexec/aerc/filters/html'}}
76125
```
77126

78-
*.Local*
79-
@@ -425,7 +425,7 @@ aerc provides the following additional functions:
127+
*exec*
128+
@@ -581,7 +581,7 @@ aerc provides the following additional functions:
80129

81130
```
82131
{{if eq .OriginalMIMEType "text/html"}}

0 commit comments

Comments
 (0)