ruby-zoom: init at 4.1.0
From the website, https://gitlab.com/mjwhitta/zoom Zoom adds some convenience to ag/ack/grep by allowing you to quickly open your search results in your editor of choice. Also available as a ruby gem. https://rubygems.org/gems/ruby-zoom In addition to including the ruby-zoom tool, we also added a global override for the ruby-terminfo gem to handle the ncurses build time dependency.
This commit is contained in:
parent
d333ec501d
commit
219b9d5086
|
@ -141,6 +141,13 @@ in
|
|||
buildInputs = [ imagemagick pkgconfig which ];
|
||||
};
|
||||
|
||||
ruby-terminfo = attrs: {
|
||||
buildInputs = [ ncurses ];
|
||||
buildFlags = [
|
||||
"--with-cflags=-I${ncurses.dev}/include"
|
||||
"--with-ldflags=-L${ncurses.out}/lib"
|
||||
];
|
||||
};
|
||||
rugged = attrs: {
|
||||
buildInputs = [ cmake pkgconfig openssl libssh2 zlib ];
|
||||
};
|
||||
|
|
2
pkgs/tools/text/ruby-zoom/Gemfile
Normal file
2
pkgs/tools/text/ruby-zoom/Gemfile
Normal file
|
@ -0,0 +1,2 @@
|
|||
source 'https://rubygems.org'
|
||||
gem 'ruby-zoom'
|
25
pkgs/tools/text/ruby-zoom/Gemfile.lock
Normal file
25
pkgs/tools/text/ruby-zoom/Gemfile.lock
Normal file
|
@ -0,0 +1,25 @@
|
|||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
djinni (2.0.1)
|
||||
fagin (~> 0.1, >= 0.1.2)
|
||||
ruby-terminfo (~> 0.1, >= 0.1.1)
|
||||
fagin (0.1.2)
|
||||
hilighter (0.1.7)
|
||||
json_config (0.1.2)
|
||||
ruby-terminfo (0.1.1)
|
||||
ruby-zoom (4.1.0)
|
||||
djinni (~> 2.0, >= 2.0.1)
|
||||
hilighter (~> 0.1, >= 0.1.3)
|
||||
json_config (~> 0.1, >= 0.1.2)
|
||||
scoobydoo (~> 0.1, >= 0.1.4)
|
||||
scoobydoo (0.1.4)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
ruby-zoom
|
||||
|
||||
BUNDLED WITH
|
||||
1.13.1
|
18
pkgs/tools/text/ruby-zoom/default.nix
Normal file
18
pkgs/tools/text/ruby-zoom/default.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ lib, bundlerEnv, ruby, stdenv }:
|
||||
|
||||
bundlerEnv {
|
||||
pname = "ruby-zoom";
|
||||
|
||||
inherit ruby;
|
||||
gemfile = ./Gemfile;
|
||||
lockfile = ./Gemfile.lock;
|
||||
gemset = ./gemset.nix;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Quickly open CLI search results in your favorite editor!";
|
||||
homepage = https://gitlab.com/mjwhitta/zoom;
|
||||
license = with licenses; gpl3;
|
||||
maintainers = with stdenv.lib.maintainers; [ vmandela ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
58
pkgs/tools/text/ruby-zoom/gemset.nix
Normal file
58
pkgs/tools/text/ruby-zoom/gemset.nix
Normal file
|
@ -0,0 +1,58 @@
|
|||
{
|
||||
djinni = {
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "0wl4q4qs1nyla5n2b2ys6n3i35gvli8xb8mxz2xv0ik306cikqm6";
|
||||
type = "gem";
|
||||
};
|
||||
version = "2.0.1";
|
||||
};
|
||||
fagin = {
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "17d419vkfr26gdbad97fg2ikskhn82vs3bnxlzd27w6lwyf13qxk";
|
||||
type = "gem";
|
||||
};
|
||||
version = "0.1.2";
|
||||
};
|
||||
hilighter = {
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "1a9a9clgd6kx63a82msjzi6abznfqivsgmds7qaqwb1dsl1nznbh";
|
||||
type = "gem";
|
||||
};
|
||||
version = "0.1.7";
|
||||
};
|
||||
json_config = {
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "16q3q0j9s8w93lzxa7rrvh5wqk11np7s2nmgmdlrh8gl3w76xcz6";
|
||||
type = "gem";
|
||||
};
|
||||
version = "0.1.2";
|
||||
};
|
||||
ruby-terminfo = {
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm";
|
||||
type = "gem";
|
||||
};
|
||||
version = "0.1.1";
|
||||
};
|
||||
ruby-zoom = {
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "132pk0zp3rayvvbccfs5ksigg9zpflp9734b4r0jz5aimmv2qpvp";
|
||||
type = "gem";
|
||||
};
|
||||
version = "4.1.0";
|
||||
};
|
||||
scoobydoo = {
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "1w83zgip3qvh20pgqgcp9yp0k35ypn7ny0d61xcv1ik0r3ab8ga0";
|
||||
type = "gem";
|
||||
};
|
||||
version = "0.1.4";
|
||||
};
|
||||
}
|
|
@ -10330,6 +10330,8 @@ in
|
|||
|
||||
seyren = callPackage ../servers/monitoring/seyren { };
|
||||
|
||||
ruby-zoom = callPackage ../tools/text/ruby-zoom { };
|
||||
|
||||
sensu = callPackage ../servers/monitoring/sensu {
|
||||
ruby = ruby_2_1;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue