aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/tools/networking/maphosts
diff options
context:
space:
mode:
authorMx Kookie <kookie@spacekookie.de>2020-10-31 19:35:09 +0100
committerMx Kookie <kookie@spacekookie.de>2020-10-31 19:35:09 +0100
commitc4625b175f8200f643fd6e11010932ea44c78433 (patch)
treebce3f89888c8ac3991fa5569a878a9eab6801ccc /infra/libkookie/nixpkgs/pkgs/tools/networking/maphosts
parent49f735974dd103039ddc4cb576bb76555164a9e7 (diff)
parentd661aa56a8843e991261510c1bb28fdc2f6975ae (diff)
Add 'infra/libkookie/' from commit 'd661aa56a8843e991261510c1bb28fdc2f6975ae'
git-subtree-dir: infra/libkookie git-subtree-mainline: 49f735974dd103039ddc4cb576bb76555164a9e7 git-subtree-split: d661aa56a8843e991261510c1bb28fdc2f6975ae
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/tools/networking/maphosts')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/tools/networking/maphosts/Gemfile2
-rw-r--r--infra/libkookie/nixpkgs/pkgs/tools/networking/maphosts/Gemfile.lock19
-rw-r--r--infra/libkookie/nixpkgs/pkgs/tools/networking/maphosts/default.nix28
-rw-r--r--infra/libkookie/nixpkgs/pkgs/tools/networking/maphosts/gemset.nix34
4 files changed, 83 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/tools/networking/maphosts/Gemfile b/infra/libkookie/nixpkgs/pkgs/tools/networking/maphosts/Gemfile
new file mode 100644
index 000000000000..cf3ea24c436f
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/tools/networking/maphosts/Gemfile
@@ -0,0 +1,2 @@
+source 'https://rubygems.org'
+gem 'maphosts'
diff --git a/infra/libkookie/nixpkgs/pkgs/tools/networking/maphosts/Gemfile.lock b/infra/libkookie/nixpkgs/pkgs/tools/networking/maphosts/Gemfile.lock
new file mode 100644
index 000000000000..3e2332f75ccf
--- /dev/null
+++ b/infra/libkookie/nixpkgs/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
+ 2.1.4
diff --git a/infra/libkookie/nixpkgs/pkgs/tools/networking/maphosts/default.nix b/infra/libkookie/nixpkgs/pkgs/tools/networking/maphosts/default.nix
new file mode 100644
index 000000000000..8e3d0cf9160c
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/tools/networking/maphosts/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, lib, bundlerEnv, ruby, bundlerUpdateScript }:
+
+let
+ env = bundlerEnv {
+ name = "maphosts-gems";
+ inherit ruby;
+ gemdir = ./.;
+ };
+in stdenv.mkDerivation {
+ name = "maphosts-${env.gems.maphosts.version}";
+
+ phases = ["installPhase"];
+
+ installPhase = ''
+ mkdir -p "$out/bin"
+ ln -s "${env}/bin/maphosts" "$out/bin/maphosts"
+ '';
+
+ passthru.updateScript = bundlerUpdateScript "maphosts";
+
+ 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 nicknovitski ];
+ platforms = platforms.all;
+ };
+}
diff --git a/infra/libkookie/nixpkgs/pkgs/tools/networking/maphosts/gemset.nix b/infra/libkookie/nixpkgs/pkgs/tools/networking/maphosts/gemset.nix
new file mode 100644
index 000000000000..3469d76ea65d
--- /dev/null
+++ b/infra/libkookie/nixpkgs/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