git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #27024 from zarelit/mailcatcher

mailcatcher: init at 0.6.5

commitabd7237573e54a74452853e26ffc1f861b78147b authorJörg Thalheim <Mic92@users.noreply.github.com> dateMon 3 Jul 2017, 09:46 (9 years ago) parentf70d44019cd9f5
6 files changed+187
lib/maintainers.nix+1 pkgs/development/web/mailcatcher/Gemfile+2 pkgs/development/web/mailcatcher/Gemfile.lock+43 pkgs/development/web/mailcatcher/default.nix+33 pkgs/development/web/mailcatcher/gemset.nix+106 pkgs/top-level/all-packages.nix+2
lib/maintainers.nix+1
@@ -606,6 +606,7 @@
606606 z77z = "Marco Maggesi <maggesi@math.unifi.it>";
607607 zagy = "Christian Zagrodnick <cz@flyingcircus.io>";
608608 zalakain = "Unai Zalakain <contact@unaizalakain.info>";
609+ zarelit = "David Costa <david@zarel.net>";
609610 zauberpony = "Elmar Athmer <elmar@athmer.org>";
610611 zef = "Zef Hemel <zef@zef.me>";
611612 zimbatm = "zimbatm <zimbatm@zimbatm.com>";
pkgs/development/web/mailcatcher/Gemfilenew file+2
@@ -0,0 +1,2 @@
1+source 'https://rubygems.org'
2+gem 'mailcatcher'
pkgs/development/web/mailcatcher/Gemfile.locknew file+43
@@ -0,0 +1,43 @@
1+GEM
2+ remote: https://rubygems.org/
3+ specs:
4+ daemons (1.2.4)
5+ eventmachine (1.0.9.1)
6+ mail (2.6.6)
7+ mime-types (>= 1.16, < 4)
8+ mailcatcher (0.6.5)
9+ eventmachine (= 1.0.9.1)
10+ mail (~> 2.3)
11+ rack (~> 1.5)
12+ sinatra (~> 1.2)
13+ skinny (~> 0.2.3)
14+ sqlite3 (~> 1.3)
15+ thin (~> 1.5.0)
16+ mime-types (3.1)
17+ mime-types-data (~> 3.2015)
18+ mime-types-data (3.2016.0521)
19+ rack (1.6.8)
20+ rack-protection (1.5.3)
21+ rack
22+ sinatra (1.4.8)
23+ rack (~> 1.5)
24+ rack-protection (~> 1.4)
25+ tilt (>= 1.3, < 3)
26+ skinny (0.2.4)
27+ eventmachine (~> 1.0.0)
28+ thin (>= 1.5, < 1.7)
29+ sqlite3 (1.3.13)
30+ thin (1.5.1)
31+ daemons (>= 1.0.9)
32+ eventmachine (>= 0.12.6)
33+ rack (>= 1.0.0)
34+ tilt (2.0.7)
35+
36+PLATFORMS
37+ ruby
38+
39+DEPENDENCIES
40+ mailcatcher
41+
42+BUNDLED WITH
43+ 1.14.4
pkgs/development/web/mailcatcher/default.nixnew file+33
@@ -0,0 +1,33 @@
1+{ stdenv, bundlerEnv, ruby, makeWrapper }:
2+
3+stdenv.mkDerivation rec {
4+ name = "mailcatcher-${version}";
5+
6+ version = (import ./gemset.nix).mailcatcher.version;
7+
8+ env = bundlerEnv {
9+ name = "${name}-gems";
10+
11+ inherit ruby;
12+
13+ gemdir = ./.;
14+ };
15+
16+ buildInputs = [ makeWrapper ];
17+
18+ unpackPhase = ":";
19+
20+ installPhase = ''
21+ mkdir -p $out/bin
22+ makeWrapper ${env}/bin/mailcatcher $out/bin/mailcatcher
23+ makeWrapper ${env}/bin/catchmail $out/bin/catchmail
24+ '';
25+
26+ meta = with stdenv.lib; {
27+ description = "SMTP server and web interface to locally test outbound emails";
28+ homepage = https://mailcatcher.me/;
29+ license = licenses.mit;
30+ maintainers = [ maintainers.zarelit ];
31+ platforms = platforms.unix;
32+ };
33+}
pkgs/development/web/mailcatcher/gemset.nixnew file+106
@@ -0,0 +1,106 @@
1+{
2+ daemons = {
3+ source = {
4+ remotes = ["https://rubygems.org"];
5+ sha256 = "1bmb4qrd95b5gl3ym5j3q6mf090209f4vkczggn49n56w6s6zldz";
6+ type = "gem";
7+ };
8+ version = "1.2.4";
9+ };
10+ eventmachine = {
11+ source = {
12+ remotes = ["https://rubygems.org"];
13+ sha256 = "17jr1caa3ggg696dd02g2zqzdjqj9x9q2nl7va82l36f7c5v6k4z";
14+ type = "gem";
15+ };
16+ version = "1.0.9.1";
17+ };
18+ mail = {
19+ source = {
20+ remotes = ["https://rubygems.org"];
21+ sha256 = "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9";
22+ type = "gem";
23+ };
24+ version = "2.6.6";
25+ };
26+ mailcatcher = {
27+ source = {
28+ remotes = ["https://rubygems.org"];
29+ sha256 = "0h6gk8n18i5f651f244al1hscjzl27fpma4vqw0qhszqqpd5p3bx";
30+ type = "gem";
31+ };
32+ version = "0.6.5";
33+ };
34+ mime-types = {
35+ source = {
36+ remotes = ["https://rubygems.org"];
37+ sha256 = "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m";
38+ type = "gem";
39+ };
40+ version = "3.1";
41+ };
42+ mime-types-data = {
43+ source = {
44+ remotes = ["https://rubygems.org"];
45+ sha256 = "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm";
46+ type = "gem";
47+ };
48+ version = "3.2016.0521";
49+ };
50+ rack = {
51+ source = {
52+ remotes = ["https://rubygems.org"];
53+ sha256 = "19m7aixb2ri7p1n0iqaqx8ldi97xdhvbxijbyrrcdcl6fv5prqza";
54+ type = "gem";
55+ };
56+ version = "1.6.8";
57+ };
58+ rack-protection = {
59+ source = {
60+ remotes = ["https://rubygems.org"];
61+ sha256 = "0cvb21zz7p9wy23wdav63z5qzfn4nialik22yqp6gihkgfqqrh5r";
62+ type = "gem";
63+ };
64+ version = "1.5.3";
65+ };
66+ sinatra = {
67+ source = {
68+ remotes = ["https://rubygems.org"];
69+ sha256 = "0byxzl7rx3ki0xd7aiv1x8mbah7hzd8f81l65nq8857kmgzj1jqq";
70+ type = "gem";
71+ };
72+ version = "1.4.8";
73+ };
74+ skinny = {
75+ source = {
76+ remotes = ["https://rubygems.org"];
77+ sha256 = "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9";
78+ type = "gem";
79+ };
80+ version = "0.2.4";
81+ };
82+ sqlite3 = {
83+ source = {
84+ remotes = ["https://rubygems.org"];
85+ sha256 = "01ifzp8nwzqppda419c9wcvr8n82ysmisrs0hph9pdmv1lpa4f5i";
86+ type = "gem";
87+ };
88+ version = "1.3.13";
89+ };
90+ thin = {
91+ source = {
92+ remotes = ["https://rubygems.org"];
93+ sha256 = "0hrq9m3hb6pm8yrqshhg0gafkphdpvwcqmr7k722kgdisp3w91ga";
94+ type = "gem";
95+ };
96+ version = "1.5.1";
97+ };
98+ tilt = {
99+ source = {
100+ remotes = ["https://rubygems.org"];
101+ sha256 = "1is1ayw5049z8pd7slsk870bddyy5g2imp4z78lnvl8qsl8l0s7b";
102+ type = "gem";
103+ };
104+ version = "2.0.7";
105+ };
106+}
pkgs/top-level/all-packages.nix+2
@@ -2732,6 +2732,8 @@ with pkgs;
27322732
27332733 kzipmix = callPackage_i686 ../tools/compression/kzipmix { };
27342734
2735+ mailcatcher = callPackage ../development/web/mailcatcher { };
2736+
27352737 makebootfat = callPackage ../tools/misc/makebootfat { };
27362738
27372739 matrix-synapse = callPackage ../servers/matrix-synapse { };