diff options
author | Kyle McKean <mckean.kylej@gmail.com> | 2016-08-02 10:51:24 -0400 |
---|---|---|
committer | zimbatm <zimbatm@zimbatm.com> | 2016-08-10 14:16:24 +0100 |
commit | de7a2651173655eef7c37369a05b6d4a47b64f41 (patch) | |
tree | 7ad6f6db010aaccd8a74736bfa4120acd83fb635 /pkgs/tools/text/reckon | |
parent | c8755d26b5ee086a05760af80c5c0eb36bec51ec (diff) |
reckon: init at 0.4.4
Diffstat (limited to 'pkgs/tools/text/reckon')
-rw-r--r-- | pkgs/tools/text/reckon/Gemfile | 2 | ||||
-rw-r--r-- | pkgs/tools/text/reckon/Gemfile.lock | 21 | ||||
-rw-r--r-- | pkgs/tools/text/reckon/default.nix | 30 | ||||
-rw-r--r-- | pkgs/tools/text/reckon/gemset.nix | 42 |
4 files changed, 95 insertions, 0 deletions
diff --git a/pkgs/tools/text/reckon/Gemfile b/pkgs/tools/text/reckon/Gemfile new file mode 100644 index 000000000000..f708ddd93664 --- /dev/null +++ b/pkgs/tools/text/reckon/Gemfile @@ -0,0 +1,2 @@ +source 'https://rubygems.org' +gem 'reckon' diff --git a/pkgs/tools/text/reckon/Gemfile.lock b/pkgs/tools/text/reckon/Gemfile.lock new file mode 100644 index 000000000000..0ede7e2a2564 --- /dev/null +++ b/pkgs/tools/text/reckon/Gemfile.lock @@ -0,0 +1,21 @@ +GEM + remote: https://rubygems.org/ + specs: + chronic (0.10.2) + fastercsv (1.5.5) + highline (1.7.8) + reckon (0.4.4) + chronic (>= 0.3.0) + fastercsv (>= 1.5.1) + highline (>= 1.5.2) + terminal-table (>= 1.4.2) + terminal-table (1.6.0) + +PLATFORMS + ruby + +DEPENDENCIES + reckon + +BUNDLED WITH + 1.12.5 diff --git a/pkgs/tools/text/reckon/default.nix b/pkgs/tools/text/reckon/default.nix new file mode 100644 index 000000000000..370fcf265d51 --- /dev/null +++ b/pkgs/tools/text/reckon/default.nix @@ -0,0 +1,30 @@ +{ stdenv, lib, bundlerEnv, makeWrapper }: + +stdenv.mkDerivation rec { + name = "reckon-${version}"; + version = "0.4.4"; + + env = bundlerEnv { + name = "${name}-gems"; + + gemfile = ./Gemfile; + lockfile = ./Gemfile.lock; + gemset = ./gemset.nix; + }; + + phases = [ "installPhase" ]; + + buildInputs = [ makeWrapper ]; + + installPhase = '' + mkdir -p $out/bin + makeWrapper ${env}/bin/reckon $out/bin/reckon + ''; + + meta = with lib; { + description = "Flexibly import bank account CSV files into Ledger for command line accounting"; + license = licenses.mit; + maintainers = "mckean.kylej@gmail.com"; + platforms = platforms.unix; + }; +} diff --git a/pkgs/tools/text/reckon/gemset.nix b/pkgs/tools/text/reckon/gemset.nix new file mode 100644 index 000000000000..e1e4a43188df --- /dev/null +++ b/pkgs/tools/text/reckon/gemset.nix @@ -0,0 +1,42 @@ +{ + chronic = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1hrdkn4g8x7dlzxwb1rfgr8kw3bp4ywg5l4y4i9c2g5cwv62yvvn"; + type = "gem"; + }; + version = "0.10.2"; + }; + fastercsv = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1df3vfgw5wg0s405z0pj0rfcvnl9q6wak7ka8gn0xqg4cag1k66h"; + type = "gem"; + }; + version = "1.5.5"; + }; + highline = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1nf5lgdn6ni2lpfdn4gk3gi47fmnca2bdirabbjbz1fk9w4p8lkr"; + type = "gem"; + }; + version = "1.7.8"; + }; + reckon = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1p6w8w7vpl8fq4yfggrxbv6ph76psg7l5b4q29a8zvfbzzx6a0xw"; + type = "gem"; + }; + version = "0.4.4"; + }; + terminal-table = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0hbmzfr17ji5ws5x5z3kypmb5irwwss7q7kkad0gs005ibqrxv0a"; + type = "gem"; + }; + version = "1.6.0"; + }; +}
\ No newline at end of file |