diff --git a/pkgs/development/tools/redis-dump/.bundle/config b/pkgs/development/tools/redis-dump/.bundle/config new file mode 100644 index 000000000000..b81abe028c3c --- /dev/null +++ b/pkgs/development/tools/redis-dump/.bundle/config @@ -0,0 +1,3 @@ +--- +BUNDLE_PATH: vendor +BUNDLE_DISABLE_SHARED_GEMS: '1' diff --git a/pkgs/development/tools/redis-dump/Gemfile b/pkgs/development/tools/redis-dump/Gemfile new file mode 100644 index 000000000000..f78cb0873c08 --- /dev/null +++ b/pkgs/development/tools/redis-dump/Gemfile @@ -0,0 +1,3 @@ +source 'https://rubygems.org' + +gem 'redis-dump' diff --git a/pkgs/development/tools/redis-dump/Gemfile.lock b/pkgs/development/tools/redis-dump/Gemfile.lock new file mode 100644 index 000000000000..283a3815f223 --- /dev/null +++ b/pkgs/development/tools/redis-dump/Gemfile.lock @@ -0,0 +1,21 @@ +GEM + remote: https://rubygems.org/ + specs: + drydock (0.6.9) + redis (3.3.0) + redis-dump (0.3.5) + drydock (>= 0.6.9) + redis (>= 2.0) + uri-redis (>= 0.4.0) + yajl-ruby (>= 0.1) + uri-redis (0.4.2) + yajl-ruby (1.2.1) + +PLATFORMS + ruby + +DEPENDENCIES + redis-dump + +BUNDLED WITH + 1.11.2 diff --git a/pkgs/development/tools/redis-dump/default.nix b/pkgs/development/tools/redis-dump/default.nix new file mode 100644 index 000000000000..bc1adf730a35 --- /dev/null +++ b/pkgs/development/tools/redis-dump/default.nix @@ -0,0 +1,20 @@ +{ stdenv, lib, bundlerEnv, ruby, perl, autoconf }: + +bundlerEnv { + name = "redis-dump-0.3.5"; + + inherit ruby; + gemfile = ./Gemfile; + lockfile = ./Gemfile.lock; + gemset = ./gemset.nix; + + buildInputs = [ perl autoconf ]; + + meta = with lib; { + description = "Backup and restore your Redis data to and from JSON"; + homepage = http://delanotes.com/redis-dump/; + license = licenses.mit; + maintainers = with maintainers; [ offline ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/development/tools/redis-dump/gemset.nix b/pkgs/development/tools/redis-dump/gemset.nix new file mode 100644 index 000000000000..4054f4bb0a7a --- /dev/null +++ b/pkgs/development/tools/redis-dump/gemset.nix @@ -0,0 +1,41 @@ +{ + drydock = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0grf3361mh93lczljmnwafl7gbcp9kk1bjpfwx4ykpd43fzdbfyj"; + type = "gem"; + }; + version = "0.6.9"; + }; + redis = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1v68ggm0pwcyml3ngfyngwgvypwmsrmji1kyx48qqcg045zjs5p6"; + type = "gem"; + }; + version = "3.3.0"; + }; + redis-dump = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0y6s3nvcw84jqqvp9pjg9qmqyc0b8jkrp0dknhjjr0lg2q3fq87h"; + type = "gem"; + }; + version = "0.3.5"; + }; + uri-redis = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "13n8ak41rikkbmml054pir4i1xbgjpmf3dbqihc2kcrgmz3dg81a"; + type = "gem"; + }; + version = "0.4.2"; + }; + yajl-ruby = { + source = { + sha256 = "0zvvb7i1bl98k3zkdrnx9vasq0rp2cyy5n7p9804dqs4fz9xh9vf"; + type = "gem"; + }; + version = "1.2.1"; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4126d518076a..3b787bb93875 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6243,6 +6243,10 @@ in hammer = callPackage ../development/tools/parsing/hammer { }; + redis-dump = callPackage ../development/tools/redis-dump { + ruby = ruby_2_0; + }; + re2c = callPackage ../development/tools/parsing/re2c { }; remake = callPackage ../development/tools/build-managers/remake { };