git.iko.soy/typeable/nixpkgs
on master help sign in
ejson: init at 1.2.0
commit3a275ac1eb4ea538222e8b282d9804bab6e6e543 authorMichael Fellinger <michael.fellinger@xing.com> dateWed 26 Sep 2018, 13:35 (8 years ago) parent82feb4b
6 files changed+342
pkgs/development/tools/ejson/Gemfile+4 pkgs/development/tools/ejson/Gemfile.lock+54 pkgs/development/tools/ejson/default.nix+46 pkgs/development/tools/ejson/deps.nix+48 pkgs/development/tools/ejson/gemset.nix+188 pkgs/top-level/all-packages.nix+2
pkgs/development/tools/ejson/Gemfilenew file+4
@@ -0,0 +1,4 @@
1+source 'https://rubygems.org'
2+
3+gem 'fpm'
4+gem 'ronn'
pkgs/development/tools/ejson/Gemfile.locknew file+54
@@ -0,0 +1,54 @@
1+GEM
2+ remote: https://rubygems.org/
3+ specs:
4+ arr-pm (0.0.10)
5+ cabin (> 0)
6+ backports (3.8.0)
7+ cabin (0.9.0)
8+ childprocess (0.7.1)
9+ ffi (~> 1.0, >= 1.0.11)
10+ clamp (1.0.1)
11+ dotenv (2.2.1)
12+ ffi (1.9.18)
13+ fpm (1.9.2)
14+ arr-pm (~> 0.0.10)
15+ backports (>= 2.6.2)
16+ cabin (>= 0.6.0)
17+ childprocess
18+ clamp (~> 1.0.0)
19+ ffi
20+ json (>= 1.7.7, < 2.0)
21+ pleaserun (~> 0.0.29)
22+ ruby-xz
23+ stud
24+ hpricot (0.8.6)
25+ insist (1.0.0)
26+ io-like (0.3.0)
27+ json (1.8.6)
28+ mustache (0.99.8)
29+ pleaserun (0.0.30)
30+ cabin (> 0)
31+ clamp
32+ dotenv
33+ insist
34+ mustache (= 0.99.8)
35+ stud
36+ rdiscount (2.2.0.1)
37+ ronn (0.7.3)
38+ hpricot (>= 0.8.2)
39+ mustache (>= 0.7.0)
40+ rdiscount (>= 1.5.8)
41+ ruby-xz (0.2.3)
42+ ffi (~> 1.9)
43+ io-like (~> 0.3)
44+ stud (0.0.23)
45+
46+PLATFORMS
47+ ruby
48+
49+DEPENDENCIES
50+ fpm
51+ ronn
52+
53+BUNDLED WITH
54+ 1.16.0
pkgs/development/tools/ejson/default.nixnew file+46
@@ -0,0 +1,46 @@
1+{ lib, bundlerEnv, ruby, buildGoPackage, fetchFromGitHub }:
2+let
3+ # needed for manpage generation
4+ gems = bundlerEnv {
5+ name = "ejson-gems";
6+ gemdir = ./.;
7+ inherit ruby;
8+ };
9+in buildGoPackage rec {
10+ name = "ejson-${version}";
11+ version = "1.2.0";
12+ rev = "v${version}";
13+
14+ nativeBuildInputs = [ gems ];
15+
16+ goPackagePath = "github.com/Shopify/ejson";
17+ subPackages = [ "cmd/ejson" ];
18+
19+ goDeps = ./deps.nix;
20+
21+ src = fetchFromGitHub {
22+ owner = "Shopify";
23+ repo = "ejson";
24+ inherit rev;
25+ sha256 = "07ig24fryb9n0mfyqb0sgpj7di9y7wbvh2ppwfs2jqfpvpncd7yh";
26+ };
27+
28+ # set HOME, otherwise bundler will insert stuff in the manpages
29+ postBuild = ''
30+ cd go/src/$goPackagePath
31+ HOME=$PWD make man
32+ '';
33+
34+ postInstall = ''
35+ mkdir -p $out/share
36+ cp -r build/man $out/share
37+ '';
38+
39+ meta = with lib; {
40+ description = "A small library to manage encrypted secrets using asymmetric encryption.";
41+ license = licenses.mit;
42+ homepage = https://github.com/Shopify/ejson;
43+ platforms = platforms.unix;
44+ maintainers = [ maintainers.manveru ];
45+ };
46+}
pkgs/development/tools/ejson/deps.nixnew file+48
@@ -0,0 +1,48 @@
1+# file generated from Gopkg.lock using dep2nix (https://github.com/nixcloud/dep2nix)
2+[
3+ {
4+ goPackagePath = "github.com/codegangsta/cli";
5+ fetch = {
6+ type = "git";
7+ url = "https://github.com/codegangsta/cli";
8+ rev = "9908e96513e5a94de37004098a3974a567f18111";
9+ sha256 = "0g6sihdb53nlf770dp3jc0qqxnlir5n2yjbp5p5vf7kcj3p54p34";
10+ };
11+ }
12+ {
13+ goPackagePath = "github.com/dustin/gojson";
14+ fetch = {
15+ type = "git";
16+ url = "https://github.com/dustin/gojson";
17+ rev = "057ac0edc14e44d03df3bb03449e666ff50884c1";
18+ sha256 = "1kzzbi5yshcg1v99gab5ymd3psild3p0rbq9jf7mssjvh11yza6f";
19+ };
20+ }
21+ {
22+ goPackagePath = "github.com/smartystreets/goconvey";
23+ fetch = {
24+ type = "git";
25+ url = "https://github.com/smartystreets/goconvey";
26+ rev = "90f2eae17a8bdcbe3f6f654fc76af7f39e97d7b9";
27+ sha256 = "0s984ksmc8npf642nwwd1a81c2sfi613v7yia9jff710i5472fah";
28+ };
29+ }
30+ {
31+ goPackagePath = "github.com/urfave/cli";
32+ fetch = {
33+ type = "git";
34+ url = "https://github.com/urfave/cli";
35+ rev = "cfb38830724cc34fedffe9a2a29fb54fa9169cd1";
36+ sha256 = "0y6f4sbzkiiwrxbl15biivj8c7qwxnvm3zl2dd3mw4wzg4x10ygj";
37+ };
38+ }
39+ {
40+ goPackagePath = "golang.org/x/crypto";
41+ fetch = {
42+ type = "git";
43+ url = "https://go.googlesource.com/crypto";
44+ rev = "ca7e7f10cb9fd9c1a6ff7f60436c086d73714180";
45+ sha256 = "02wmfdq40fjszrd9l2w4c1g34zxnxyydwr4sqvp2blmw2s6ww4bx";
46+ };
47+ }
48+]
pkgs/development/tools/ejson/gemset.nixnew file+188
@@ -0,0 +1,188 @@
1+{
2+ arr-pm = {
3+ dependencies = ["cabin"];
4+ groups = ["default"];
5+ platforms = [];
6+ source = {
7+ remotes = ["https://rubygems.org"];
8+ sha256 = "07yx1g1nh4zdy38i2id1xyp42fvj4vl6i196jn7szvjfm0jx98hg";
9+ type = "gem";
10+ };
11+ version = "0.0.10";
12+ };
13+ backports = {
14+ groups = ["default"];
15+ platforms = [];
16+ source = {
17+ remotes = ["https://rubygems.org"];
18+ sha256 = "17pcz0z6jms5jydr1r95kf1bpk3ms618hgr26c62h34icy9i1dpm";
19+ type = "gem";
20+ };
21+ version = "3.8.0";
22+ };
23+ cabin = {
24+ groups = ["default"];
25+ platforms = [];
26+ source = {
27+ remotes = ["https://rubygems.org"];
28+ sha256 = "0b3b8j3iqnagjfn1261b9ncaac9g44zrx1kcg81yg4z9i513kici";
29+ type = "gem";
30+ };
31+ version = "0.9.0";
32+ };
33+ childprocess = {
34+ dependencies = ["ffi"];
35+ groups = ["default"];
36+ platforms = [];
37+ source = {
38+ remotes = ["https://rubygems.org"];
39+ sha256 = "04cypmwyy4aj5p9b5dmpwiz5p1gzdpz6jaxb42fpckdbmkpvn6j1";
40+ type = "gem";
41+ };
42+ version = "0.7.1";
43+ };
44+ clamp = {
45+ groups = ["default"];
46+ platforms = [];
47+ source = {
48+ remotes = ["https://rubygems.org"];
49+ sha256 = "0jb6l4scp69xifhicb5sffdixqkw8wgkk9k2q57kh2y36x1px9az";
50+ type = "gem";
51+ };
52+ version = "1.0.1";
53+ };
54+ dotenv = {
55+ groups = ["default"];
56+ platforms = [];
57+ source = {
58+ remotes = ["https://rubygems.org"];
59+ sha256 = "1pgzlvs0sswnqlgfm9gkz2hlhkc0zd3vnlp2vglb1wbgnx37pjjv";
60+ type = "gem";
61+ };
62+ version = "2.2.1";
63+ };
64+ ffi = {
65+ groups = ["default"];
66+ platforms = [];
67+ source = {
68+ remotes = ["https://rubygems.org"];
69+ sha256 = "034f52xf7zcqgbvwbl20jwdyjwznvqnwpbaps9nk18v9lgb1dpx0";
70+ type = "gem";
71+ };
72+ version = "1.9.18";
73+ };
74+ fpm = {
75+ dependencies = ["arr-pm" "backports" "cabin" "childprocess" "clamp" "ffi" "json" "pleaserun" "ruby-xz" "stud"];
76+ groups = ["default"];
77+ platforms = [];
78+ source = {
79+ remotes = ["https://rubygems.org"];
80+ sha256 = "09vzjsiwa2dlhph6fc519x5l0bfn2qfhayfld48cdl2561x5c7fb";
81+ type = "gem";
82+ };
83+ version = "1.9.2";
84+ };
85+ hpricot = {
86+ groups = ["default"];
87+ platforms = [];
88+ source = {
89+ remotes = ["https://rubygems.org"];
90+ sha256 = "1jn8x9ch79gqmnzgyz78kppavjh5lqx0y0r6frykga2b86rz9s6z";
91+ type = "gem";
92+ };
93+ version = "0.8.6";
94+ };
95+ insist = {
96+ groups = ["default"];
97+ platforms = [];
98+ source = {
99+ remotes = ["https://rubygems.org"];
100+ sha256 = "0bw3bdwns14mapbgb8cbjmr0amvwz8y72gyclq04xp43wpp5jrvg";
101+ type = "gem";
102+ };
103+ version = "1.0.0";
104+ };
105+ io-like = {
106+ groups = ["default"];
107+ platforms = [];
108+ source = {
109+ remotes = ["https://rubygems.org"];
110+ sha256 = "04nn0s2wmgxij3k760h3r8m1dgih5dmd9h4v1nn085yi824i5z6k";
111+ type = "gem";
112+ };
113+ version = "0.3.0";
114+ };
115+ json = {
116+ groups = ["default"];
117+ platforms = [];
118+ source = {
119+ remotes = ["https://rubygems.org"];
120+ sha256 = "0qmj7fypgb9vag723w1a49qihxrcf5shzars106ynw2zk352gbv5";
121+ type = "gem";
122+ };
123+ version = "1.8.6";
124+ };
125+ mustache = {
126+ groups = ["default"];
127+ platforms = [];
128+ source = {
129+ remotes = ["https://rubygems.org"];
130+ sha256 = "1g5hplm0k06vwxwqzwn1mq5bd02yp0h3rym4zwzw26aqi7drcsl2";
131+ type = "gem";
132+ };
133+ version = "0.99.8";
134+ };
135+ pleaserun = {
136+ dependencies = ["cabin" "clamp" "dotenv" "insist" "mustache" "stud"];
137+ groups = ["default"];
138+ platforms = [];
139+ source = {
140+ remotes = ["https://rubygems.org"];
141+ sha256 = "0hgnrl67zkqaxmfkwbyscawj4wqjm7h8khpbj58s6iw54wp3408p";
142+ type = "gem";
143+ };
144+ version = "0.0.30";
145+ };
146+ rdiscount = {
147+ groups = ["default"];
148+ platforms = [];
149+ source = {
150+ remotes = ["https://rubygems.org"];
151+ sha256 = "1arvk3k06prxasq1djbj065ixar4zl171340g7wr1ww4gj9makx3";
152+ type = "gem";
153+ };
154+ version = "2.2.0.1";
155+ };
156+ ronn = {
157+ dependencies = ["hpricot" "mustache" "rdiscount"];
158+ groups = ["default"];
159+ platforms = [];
160+ source = {
161+ remotes = ["https://rubygems.org"];
162+ sha256 = "07plsxxfx5bxdk72ii9za6km0ziqlq8jh3bicr4774dalga6zpw2";
163+ type = "gem";
164+ };
165+ version = "0.7.3";
166+ };
167+ ruby-xz = {
168+ dependencies = ["ffi" "io-like"];
169+ groups = ["default"];
170+ platforms = [];
171+ source = {
172+ remotes = ["https://rubygems.org"];
173+ sha256 = "11bgpvvk0098ghvlxr4i713jmi2izychalgikwvdwmpb452r3ndw";
174+ type = "gem";
175+ };
176+ version = "0.2.3";
177+ };
178+ stud = {
179+ groups = ["default"];
180+ platforms = [];
181+ source = {
182+ remotes = ["https://rubygems.org"];
183+ sha256 = "0qpb57cbpm9rwgsygqxifca0zma87drnlacv49cqs2n5iyi6z8kb";
184+ type = "gem";
185+ };
186+ version = "0.0.23";
187+ };
188+}
pkgs/top-level/all-packages.nix+2
@@ -1292,6 +1292,8 @@ with pkgs;
12921292
12931293 et = callPackage ../applications/misc/et {};
12941294
1295+ ejson = callPackage ../development/tools/ejson {};
1296+
12951297 eternal-terminal = callPackage ../tools/networking/eternal-terminal {};
12961298
12971299 f3 = callPackage ../tools/filesystems/f3 { };