File tree Expand file tree Collapse file tree 9 files changed +72
-39
lines changed
Expand file tree Collapse file tree 9 files changed +72
-39
lines changed Original file line number Diff line number Diff line change 22 callPackage ,
33 fetchpatch ,
44 dovecot_pigeonhole_2_3 ,
5+ dovecot_exporter_2_3 ,
56} :
67callPackage ./generic.nix { } {
78 version = "2.3.21.1" ;
@@ -22,4 +23,5 @@ callPackage ./generic.nix { } {
2223 ] ;
2324
2425 dovecot_pigeonhole = dovecot_pigeonhole_2_3 ;
26+ dovecot_exporter = dovecot_exporter_2_3 ;
2527}
Original file line number Diff line number Diff line change 4848 patches ? [ ] ,
4949 # Re-exported plugins for this version
5050 dovecot_pigeonhole ,
51+ dovecot_exporter ,
5152} :
5253stdenv . mkDerivation {
5354 pname = "dovecot" ;
@@ -217,5 +218,6 @@ stdenv.mkDerivation {
217218 } ;
218219
219220 pigeonhole = dovecot_pigeonhole ;
221+ exporter = dovecot_exporter ;
220222 } ;
221223}
Original file line number Diff line number Diff line change 11{
22 callPackage ,
33 dovecot_pigeonhole ,
4+ dovecot_exporter ,
45} :
56callPackage ./generic.nix { } {
67 version = "2.4.2" ;
@@ -10,5 +11,5 @@ callPackage ./generic.nix { } {
1011 ./load-extended-modules.patch
1112 ] ;
1213
13- inherit dovecot_pigeonhole ;
14+ inherit dovecot_pigeonhole dovecot_exporter ;
1415}
Original file line number Diff line number Diff line change 1+ {
2+ callPackage ,
3+ dovecot_2_3 ,
4+ } :
5+ callPackage ./generic.nix { } {
6+ dovecot = dovecot_2_3 ;
7+ }
Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ buildGoModule ,
4+ fetchFromGitHub ,
5+ fetchpatch ,
6+ nixosTests ,
7+ } :
8+ {
9+ dovecot ,
10+ } :
11+ buildGoModule {
12+ pname = "dovecot_exporter" ;
13+ version = "0.1.3-unstable-2019-07-19" ;
14+
15+ src = fetchFromGitHub {
16+ owner = "kumina" ;
17+ repo = "dovecot_exporter" ;
18+ rev = "7ef79118ba619ff078594837377189477a4d059f" ;
19+ hash = "sha256-qJbIBSfHYgFztuivuNjleDa+Bx0KC4OklCh3IvK2XFI=" ;
20+ } ;
21+
22+ vendorHash = "sha256-+B8sROL1h6ElBfAUBT286yJF9m9zoRvMOrf0z2SVCj0=" ;
23+
24+ patches = [
25+ # Migrate the project to Go modules
26+ # https://github.com/kumina/dovecot_exporter/pull/23
27+ ( fetchpatch {
28+ url = "https://github.com/kumina/dovecot_exporter/commit/b5184dd99cf8c79facf20cea281828d302327665.patch" ;
29+ hash = "sha256-OcdI1fJ/wumDI/wk5PQVot9+Gw/PnsiwgJY7dcRyEsc=" ;
30+ } )
31+ ] ;
32+
33+ passthru . tests = { inherit ( nixosTests . prometheus-exporters ) dovecot ; } ;
34+
35+ meta = {
36+ description = "Prometheus metrics exporter for Dovecot" ;
37+ homepage = "https://github.com/kumina/dovecot_exporter" ;
38+ mainProgram = "dovecot_exporter" ;
39+ license = lib . licenses . asl20 ;
40+ maintainers = with lib . maintainers ; [
41+ globin
42+ ] ;
43+ } ;
44+ }
Original file line number Diff line number Diff line change 11{
2- lib ,
3- buildGoModule ,
4- fetchFromGitHub ,
5- fetchpatch ,
6- nixosTests ,
2+ callPackage ,
3+ dovecot ,
74} :
8- buildGoModule rec {
9- pname = "dovecot_exporter" ;
10- version = "0.1.3-unstable-2019-07-19" ;
11-
12- src = fetchFromGitHub {
13- owner = "kumina" ;
14- repo = "dovecot_exporter" ;
15- rev = "7ef79118ba619ff078594837377189477a4d059f" ;
16- hash = "sha256-qJbIBSfHYgFztuivuNjleDa+Bx0KC4OklCh3IvK2XFI=" ;
17- } ;
18-
19- vendorHash = "sha256-+B8sROL1h6ElBfAUBT286yJF9m9zoRvMOrf0z2SVCj0=" ;
20-
21- patches = [
22- # Migrate the project to Go modules
23- # https://github.com/kumina/dovecot_exporter/pull/23
24- ( fetchpatch {
25- url = "https://github.com/kumina/dovecot_exporter/commit/b5184dd99cf8c79facf20cea281828d302327665.patch" ;
26- hash = "sha256-OcdI1fJ/wumDI/wk5PQVot9+Gw/PnsiwgJY7dcRyEsc=" ;
27- } )
28- ] ;
29-
30- passthru . tests = { inherit ( nixosTests . prometheus-exporters ) dovecot ; } ;
31-
32- meta = {
33- inherit ( src . meta ) homepage ;
34- description = "Prometheus metrics exporter for Dovecot" ;
35- mainProgram = "dovecot_exporter" ;
36- license = lib . licenses . asl20 ;
37- maintainers = with lib . maintainers ; [
38- globin
39- ] ;
40- } ;
5+ callPackage ./generic.nix { } {
6+ inherit dovecot ;
417}
Original file line number Diff line number Diff line change 99 url ,
1010 version ,
1111 hash ,
12+ patches ? [ ] ,
1213 dovecot ,
1314} :
1415stdenv . mkDerivation rec {
Original file line number Diff line number Diff line change 11{
22 lib ,
33 callPackage ,
4+ fetchpatch ,
45 dovecot ,
56} :
67callPackage ./generic.nix { } rec {
78 url = "https://pigeonhole.dovecot.org/releases/${ lib . versions . majorMinor dovecot . version } /dovecot-pigeonhole-${ version } .tar.gz" ;
89 version = "2.4.0" ;
910 hash = "sha256-DtCK4WOsOalEcgD7tC17OwXTXpHZmBjdD0r9etHbx1M=" ;
11+ patches = [
12+ ( fetchpatch {
13+ url = "https://patch-diff.githubusercontent.com/raw/dovecot/pigeonhole/pull/15.patch" ;
14+ sha256 = "sha256-BLBz9ZhOGEIIitnXG0uM6bZBRNnQBy4K2IJlh1+Un50=" ;
15+ } )
16+ ] ;
1017
1118 inherit dovecot ;
1219}
Original file line number Diff line number Diff line change @@ -9144,6 +9144,9 @@ with pkgs;
91449144 dovecot_pigeonhole_2_3 = callPackage ../by-name/do/dovecot_pigeonhole/2_3.nix { } ;
91459145 dovecot_pigeonhole_2_4 = callPackage ../by-name/do/dovecot_pigeonhole/package.nix { } ;
91469146
9147+ dovecot_exporter_2_3 = callPackage ../by-name/do/dovecot_exporter/2_3.nix { } ;
9148+ dovecot_exporter_2_4 = callPackage ../by-name/do/dovecot_exporter/package.nix { } ;
9149+
91479150 prosody = callPackage ../servers/xmpp/prosody {
91489151 withExtraLibs = [ ] ;
91499152 withExtraLuaPackages = _ : [ ] ;
You can’t perform that action at this time.
0 commit comments