summary refs log tree commit diff
path: root/pkgs/development/tools
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2017-09-25 15:51:17 +0100
committerGitHub <noreply@github.com>2017-09-25 15:51:17 +0100
commit8a1fb4b504d644e8a97394be74a3d3a6298fcbe7 (patch)
treee00b56f48645bebf3f840819ddfc02be9a02356d /pkgs/development/tools
parentb986c8e510e1b21d946b83b8c882d52c0b6b5368 (diff)
parent407d8dac85e9a1901091955e078345ee9d5313c6 (diff)
downloadnixlib-8a1fb4b504d644e8a97394be74a3d3a6298fcbe7.tar
nixlib-8a1fb4b504d644e8a97394be74a3d3a6298fcbe7.tar.gz
nixlib-8a1fb4b504d644e8a97394be74a3d3a6298fcbe7.tar.bz2
nixlib-8a1fb4b504d644e8a97394be74a3d3a6298fcbe7.tar.lz
nixlib-8a1fb4b504d644e8a97394be74a3d3a6298fcbe7.tar.xz
nixlib-8a1fb4b504d644e8a97394be74a3d3a6298fcbe7.tar.zst
nixlib-8a1fb4b504d644e8a97394be74a3d3a6298fcbe7.zip
Merge pull request #29702 from robertodr/watson-ruby
watson-ruby: init at 1.6.3
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r--pkgs/development/tools/misc/watson-ruby/Gemfile2
-rw-r--r--pkgs/development/tools/misc/watson-ruby/Gemfile.lock15
-rw-r--r--pkgs/development/tools/misc/watson-ruby/default.nix29
-rw-r--r--pkgs/development/tools/misc/watson-ruby/gemset.nix18
4 files changed, 64 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/watson-ruby/Gemfile b/pkgs/development/tools/misc/watson-ruby/Gemfile
new file mode 100644
index 000000000000..fc739389e84e
--- /dev/null
+++ b/pkgs/development/tools/misc/watson-ruby/Gemfile
@@ -0,0 +1,2 @@
+source 'https://rubygems.org'
+gem 'watson-ruby'
diff --git a/pkgs/development/tools/misc/watson-ruby/Gemfile.lock b/pkgs/development/tools/misc/watson-ruby/Gemfile.lock
new file mode 100644
index 000000000000..fa157d794f73
--- /dev/null
+++ b/pkgs/development/tools/misc/watson-ruby/Gemfile.lock
@@ -0,0 +1,15 @@
+GEM
+  remote: https://rubygems.org/
+  specs:
+    json (2.1.0)
+    watson-ruby (1.6.3)
+      json
+
+PLATFORMS
+  ruby
+
+DEPENDENCIES
+  watson-ruby
+
+BUNDLED WITH
+   1.14.4
diff --git a/pkgs/development/tools/misc/watson-ruby/default.nix b/pkgs/development/tools/misc/watson-ruby/default.nix
new file mode 100644
index 000000000000..32f94a1f2285
--- /dev/null
+++ b/pkgs/development/tools/misc/watson-ruby/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, bundlerEnv, ruby }:
+
+
+stdenv.mkDerivation rec {
+  name = "watson-ruby-${version}";
+  version = (import ./gemset.nix).watson-ruby.version;
+
+  env = bundlerEnv rec {
+    name = "watson-ruby-gems-${version}";
+    inherit ruby;
+    # expects Gemfile, Gemfile.lock and gemset.nix in the same directory
+    gemdir = ./.;
+  };
+
+  phases = [ "installPhase" ];
+
+  installPhase = ''
+    mkdir -p $out/bin
+    ln -s ${env}/bin/watson $out/bin/watson
+  '';
+
+  meta = with stdenv.lib; {
+    description = "An inline issue manager";
+    homepage    = http://goosecode.com/watson/;
+    license     = with licenses; mit;
+    maintainers = with maintainers; [ robertodr ];
+    platforms   = platforms.unix;
+  };
+}
diff --git a/pkgs/development/tools/misc/watson-ruby/gemset.nix b/pkgs/development/tools/misc/watson-ruby/gemset.nix
new file mode 100644
index 000000000000..a3bb144899c7
--- /dev/null
+++ b/pkgs/development/tools/misc/watson-ruby/gemset.nix
@@ -0,0 +1,18 @@
+{
+  json = {
+    source = {
+      remotes = ["https://rubygems.org"];
+      sha256 = "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp";
+      type = "gem";
+    };
+    version = "2.1.0";
+  };
+  watson-ruby = {
+    source = {
+      remotes = ["https://rubygems.org"];
+      sha256 = "1d5m29nr0i030q8ygmbapwri5ndcg2q6lf8a15bk79lfcp9xyj9w";
+      type = "gem";
+    };
+    version = "1.6.3";
+  };
+}
\ No newline at end of file