From b58e26dbf6ada6a424e958c69da049b1af8e84e7 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Sun, 2 Aug 2015 01:11:17 +0100 Subject: [PATCH] cide: init at 0.8.1 --- .../tools/continuous-integration/cide/Gemfile | 6 + .../continuous-integration/cide/Gemfile.lock | 40 +++++++ .../continuous-integration/cide/default.nix | 32 ++++++ .../continuous-integration/cide/gemset.nix | 103 ++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 5 files changed, 183 insertions(+) create mode 100644 pkgs/development/tools/continuous-integration/cide/Gemfile create mode 100644 pkgs/development/tools/continuous-integration/cide/Gemfile.lock create mode 100644 pkgs/development/tools/continuous-integration/cide/default.nix create mode 100644 pkgs/development/tools/continuous-integration/cide/gemset.nix diff --git a/pkgs/development/tools/continuous-integration/cide/Gemfile b/pkgs/development/tools/continuous-integration/cide/Gemfile new file mode 100644 index 000000000000..7e72ac0529d6 --- /dev/null +++ b/pkgs/development/tools/continuous-integration/cide/Gemfile @@ -0,0 +1,6 @@ +source "https://rubygems.org" + +gem 'cide' + +# Optional dependency, only used by `cide upload` +gem 'aws-sdk', '~> 2' diff --git a/pkgs/development/tools/continuous-integration/cide/Gemfile.lock b/pkgs/development/tools/continuous-integration/cide/Gemfile.lock new file mode 100644 index 000000000000..7db1b9db9b37 --- /dev/null +++ b/pkgs/development/tools/continuous-integration/cide/Gemfile.lock @@ -0,0 +1,40 @@ +GEM + remote: https://rubygems.org/ + specs: + aws-sdk (2.2.17) + aws-sdk-resources (= 2.2.17) + aws-sdk-core (2.2.17) + jmespath (~> 1.0) + aws-sdk-resources (2.2.17) + aws-sdk-core (= 2.2.17) + axiom-types (0.1.1) + descendants_tracker (~> 0.0.4) + ice_nine (~> 0.11.0) + thread_safe (~> 0.3, >= 0.3.1) + cide (0.8.1) + thor (~> 0.19) + virtus (~> 1.0) + coercible (1.0.0) + descendants_tracker (~> 0.0.1) + descendants_tracker (0.0.4) + thread_safe (~> 0.3, >= 0.3.1) + equalizer (0.0.11) + ice_nine (0.11.2) + jmespath (1.1.3) + thor (0.19.1) + thread_safe (0.3.5) + virtus (1.0.5) + axiom-types (~> 0.1) + coercible (~> 1.0) + descendants_tracker (~> 0.0, >= 0.0.3) + equalizer (~> 0.0, >= 0.0.9) + +PLATFORMS + ruby + +DEPENDENCIES + aws-sdk (~> 2) + cide + +BUNDLED WITH + 1.10.6 diff --git a/pkgs/development/tools/continuous-integration/cide/default.nix b/pkgs/development/tools/continuous-integration/cide/default.nix new file mode 100644 index 000000000000..1dc8f8def337 --- /dev/null +++ b/pkgs/development/tools/continuous-integration/cide/default.nix @@ -0,0 +1,32 @@ +{ stdenv, lib, bundlerEnv, makeWrapper, docker }: + +stdenv.mkDerivation rec { + name = "cide-${version}"; + version = "0.8.1"; + + 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/cide $out/bin/cide \ + --set PATH ${docker}/bin + ''; + + meta = with lib; { + description = "Isolated test runner with Docker"; + homepage = http://zimbatm.github.io/cide/; + license = licenses.mit; + maintainers = with maintainers; [ zimbatm ]; + platforms = docker.meta.platforms; + }; +} diff --git a/pkgs/development/tools/continuous-integration/cide/gemset.nix b/pkgs/development/tools/continuous-integration/cide/gemset.nix new file mode 100644 index 000000000000..2d5df24bb450 --- /dev/null +++ b/pkgs/development/tools/continuous-integration/cide/gemset.nix @@ -0,0 +1,103 @@ +{ + virtus = { + dependencies = ["axiom-types" "coercible" "descendants_tracker" "equalizer"]; + source = { + sha256 = "06iphwi3c4f7y9i2rvhvaizfswqbaflilziz4dxqngrdysgkn1fk"; + type = "gem"; + }; + version = "1.0.5"; + }; + thread_safe = { + source = { + sha256 = "1hq46wqsyylx5afkp6jmcihdpv4ynzzq9ygb6z2pb1cbz5js0gcr"; + type = "gem"; + }; + version = "0.3.5"; + }; + thor = { + source = { + sha256 = "08p5gx18yrbnwc6xc0mxvsfaxzgy2y9i78xq7ds0qmdm67q39y4z"; + type = "gem"; + }; + version = "0.19.1"; + }; + jmespath = { + version = "1.1.3"; + source = { + type = "gem"; + remotes = ["https://rubygems.org"]; + sha256 = "0vpvd61kc60f98jn28kw7x7vi82qrwgglam42nvzh98i43yxwsfb"; + }; + }; + ice_nine = { + version = "0.11.2"; + source = { + type = "gem"; + remotes = ["https://rubygems.org"]; + sha256 = "1nv35qg1rps9fsis28hz2cq2fx1i96795f91q4nmkm934xynll2x"; + }; + }; + equalizer = { + source = { + sha256 = "1kjmx3fygx8njxfrwcmn7clfhjhb6bvv3scy2lyyi0wqyi3brra4"; + type = "gem"; + }; + version = "0.0.11"; + }; + descendants_tracker = { + dependencies = ["thread_safe"]; + source = { + sha256 = "15q8g3fcqyb41qixn6cky0k3p86291y7xsh1jfd851dvrza1vi79"; + type = "gem"; + }; + version = "0.0.4"; + }; + coercible = { + dependencies = ["descendants_tracker"]; + source = { + sha256 = "1p5azydlsz0nkxmcq0i1gzmcfq02lgxc4as7wmf47j1c6ljav0ah"; + type = "gem"; + }; + version = "1.0.0"; + }; + cide = { + version = "0.8.1"; + source = { + type = "gem"; + remotes = ["https://rubygems.org"]; + sha256 = "1vsa7smab5dj6mcf0csl9wm18x95h6yphm7x18is53bv5hrzgill"; + }; + }; + axiom-types = { + dependencies = ["descendants_tracker" "ice_nine" "thread_safe"]; + source = { + sha256 = "10q3k04pll041mkgy0m5fn2b1lazm6ly1drdbcczl5p57lzi3zy1"; + type = "gem"; + }; + version = "0.1.1"; + }; + aws-sdk-resources = { + version = "2.2.17"; + source = { + type = "gem"; + remotes = ["https://rubygems.org"]; + sha256 = "0vdnpjmil99n9d1fpk1w6ssgvmzx4wfmrqcij8nyd0iqdaacx3fj"; + }; + }; + aws-sdk-core = { + version = "2.2.17"; + source = { + type = "gem"; + remotes = ["https://rubygems.org"]; + sha256 = "1vq7ny5n3rdfzkdqdm76r48slmp2a5v7565llrl4bw5hb5k4p75z"; + }; + }; + aws-sdk = { + version = "2.2.17"; + source = { + type = "gem"; + remotes = ["https://rubygems.org"]; + sha256 = "1cwycrdk21blzjzf8fj1wlmdix94rj9aixj6phx6lwbqykn2dzx9"; + }; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2e016152a5c1..4a3ea879016d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5754,6 +5754,8 @@ let chruby = callPackage ../development/tools/misc/chruby { rubies = null; }; + cide = callPackage ../development/tools/continuous-integration/cide { }; + "cl-launch" = callPackage ../development/tools/misc/cl-launch {}; coan = callPackage ../development/tools/analysis/coan { };