From 479c08750add89f546db85b75747e4aae0ac95d9 Mon Sep 17 00:00:00 2001 From: Marc Scholten Date: Wed, 29 Jun 2016 13:31:54 +0200 Subject: [PATCH] maphosts: init at 1.1.1 --- lib/maintainers.nix | 1 + pkgs/tools/networking/maphosts/Gemfile | 2 ++ pkgs/tools/networking/maphosts/Gemfile.lock | 19 ++++++++++++ pkgs/tools/networking/maphosts/default.nix | 18 +++++++++++ pkgs/tools/networking/maphosts/gemset.nix | 34 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 6 files changed, 76 insertions(+) create mode 100644 pkgs/tools/networking/maphosts/Gemfile create mode 100644 pkgs/tools/networking/maphosts/Gemfile.lock create mode 100644 pkgs/tools/networking/maphosts/default.nix create mode 100644 pkgs/tools/networking/maphosts/gemset.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index a06510ec21b109..21b719fa314993 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -255,6 +255,7 @@ mornfall = "Petr Ročkai "; MostAwesomeDude = "Corbin Simpson "; MP2E = "Cray Elliott "; + mpscholten = "Marc Scholten "; msackman = "Matthew Sackman "; mschristiansen = "Mikkel Christiansen "; msteen = "Matthijs Steen "; diff --git a/pkgs/tools/networking/maphosts/Gemfile b/pkgs/tools/networking/maphosts/Gemfile new file mode 100644 index 00000000000000..cf3ea24c436fbf --- /dev/null +++ b/pkgs/tools/networking/maphosts/Gemfile @@ -0,0 +1,2 @@ +source 'https://rubygems.org' +gem 'maphosts' diff --git a/pkgs/tools/networking/maphosts/Gemfile.lock b/pkgs/tools/networking/maphosts/Gemfile.lock new file mode 100644 index 00000000000000..c456210217e59f --- /dev/null +++ b/pkgs/tools/networking/maphosts/Gemfile.lock @@ -0,0 +1,19 @@ +GEM + remote: https://rubygems.org/ + specs: + colorize (0.8.0) + hosts (0.1.1) + linebreak (~> 2.0.1) + linebreak (2.0.1) + maphosts (1.1.1) + colorize (~> 0.7) + hosts (~> 0.1) + +PLATFORMS + ruby + +DEPENDENCIES + maphosts + +BUNDLED WITH + 1.12.5 diff --git a/pkgs/tools/networking/maphosts/default.nix b/pkgs/tools/networking/maphosts/default.nix new file mode 100644 index 00000000000000..7e722fee4002e7 --- /dev/null +++ b/pkgs/tools/networking/maphosts/default.nix @@ -0,0 +1,18 @@ +{ stdenv, lib, bundlerEnv, ruby }: + +bundlerEnv { + name = "maphosts-1.1.1"; + + inherit ruby; + gemfile = ./Gemfile; + lockfile = ./Gemfile.lock; + gemset = ./gemset.nix; + + meta = with lib; { + description = "Small command line application for keeping your project hostnames in sync with /etc/hosts"; + homepage = https://github.com/mpscholten/maphosts; + license = licenses.mit; + maintainers = with maintainers; [ mpscholten ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/tools/networking/maphosts/gemset.nix b/pkgs/tools/networking/maphosts/gemset.nix new file mode 100644 index 00000000000000..3469d76ea65d2d --- /dev/null +++ b/pkgs/tools/networking/maphosts/gemset.nix @@ -0,0 +1,34 @@ +{ + colorize = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1mmi9wr55gb84jfpyhpx975d2c8dhdsjjys88kc6f2r66brxmh23"; + type = "gem"; + }; + version = "0.8.0"; + }; + hosts = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0s1mbn73ig5dy69dr8461574kq1ig6rdz89r1w5f8i7gvx9g9z9v"; + type = "gem"; + }; + version = "0.1.1"; + }; + linebreak = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0362jhjhjcf0yr3k7bfqk4ai9yybm4985x7h1rwq4b7kvzk77pqj"; + type = "gem"; + }; + version = "2.0.1"; + }; + maphosts = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0bb7wa4vr3lkaywh4hvl74j2w5n52870zh4ypwl9cr43fdrj4nkw"; + type = "gem"; + }; + version = "1.1.1"; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index cbb4b12e51084f..812fe60bf64cc1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17158,4 +17158,6 @@ in iterm2 = callPackage ../applications/misc/iterm2 {}; sequelpro = callPackage ../applications/misc/sequelpro {}; + + maphosts = callPackage ../tools/networking/maphosts {}; }