about summary refs log tree commit diff
path: root/pkgs/development/tools
diff options
context:
space:
mode:
authorRok Garbas <rok@garbas.si>2016-07-21 01:23:06 +0200
committerGitHub <noreply@github.com>2016-07-21 01:23:06 +0200
commite2f6c6b9d2e845805b5d95c90190fc4a648a5a03 (patch)
tree1af0a836be18be20e83c19b8507db55dab74bf7a /pkgs/development/tools
parent79f6c2603c1f50f54ad8aa4d9eec5ad633173c88 (diff)
parentcbe5813e8433b76254f33a389f2bba6dd4b10253 (diff)
downloadnixlib-e2f6c6b9d2e845805b5d95c90190fc4a648a5a03.tar
nixlib-e2f6c6b9d2e845805b5d95c90190fc4a648a5a03.tar.gz
nixlib-e2f6c6b9d2e845805b5d95c90190fc4a648a5a03.tar.bz2
nixlib-e2f6c6b9d2e845805b5d95c90190fc4a648a5a03.tar.lz
nixlib-e2f6c6b9d2e845805b5d95c90190fc4a648a5a03.tar.xz
nixlib-e2f6c6b9d2e845805b5d95c90190fc4a648a5a03.tar.zst
nixlib-e2f6c6b9d2e845805b5d95c90190fc4a648a5a03.zip
Merge pull request #16620 from zimbatm/ronn-0.7.3
Ronn 0.7.3
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r--pkgs/development/tools/ronn/Gemfile3
-rw-r--r--pkgs/development/tools/ronn/Gemfile.lock19
-rw-r--r--pkgs/development/tools/ronn/default.nix31
-rw-r--r--pkgs/development/tools/ronn/gemset.nix34
4 files changed, 87 insertions, 0 deletions
diff --git a/pkgs/development/tools/ronn/Gemfile b/pkgs/development/tools/ronn/Gemfile
new file mode 100644
index 000000000000..64f1df743abc
--- /dev/null
+++ b/pkgs/development/tools/ronn/Gemfile
@@ -0,0 +1,3 @@
+source "https://rubygems.org"
+
+gem "ronn"
diff --git a/pkgs/development/tools/ronn/Gemfile.lock b/pkgs/development/tools/ronn/Gemfile.lock
new file mode 100644
index 000000000000..c2b90f634948
--- /dev/null
+++ b/pkgs/development/tools/ronn/Gemfile.lock
@@ -0,0 +1,19 @@
+GEM
+  remote: https://rubygems.org/
+  specs:
+    hpricot (0.8.6)
+    mustache (1.0.3)
+    rdiscount (2.2.0.1)
+    ronn (0.7.3)
+      hpricot (>= 0.8.2)
+      mustache (>= 0.7.0)
+      rdiscount (>= 1.5.8)
+
+PLATFORMS
+  ruby
+
+DEPENDENCIES
+  ronn
+
+BUNDLED WITH
+   1.11.2
diff --git a/pkgs/development/tools/ronn/default.nix b/pkgs/development/tools/ronn/default.nix
new file mode 100644
index 000000000000..7720c4f2bf2b
--- /dev/null
+++ b/pkgs/development/tools/ronn/default.nix
@@ -0,0 +1,31 @@
+{ stdenv, lib, bundlerEnv, makeWrapper, groff }:
+
+stdenv.mkDerivation rec {
+  name = "ronn-${version}";
+  version = env.gems.ronn.version;
+
+  env = bundlerEnv rec {
+    name = "ronn-gems";
+    gemfile = ./Gemfile;
+    lockfile = ./Gemfile.lock;
+    gemset = ./gemset.nix;
+  };
+
+  phases = ["installPhase"];
+
+  buildInputs = [ makeWrapper ];
+
+  installPhase = ''
+    mkdir -p $out/bin
+    makeWrapper ${env}/bin/ronn $out/bin/ronn \
+      --set PATH ${groff}/bin
+  '';
+
+  meta = with lib; {
+    description = "markdown-based tool for building manpages";
+    homepage = https://rtomayko.github.io/ronn/;
+    license = licenses.mit;
+    maintainers = with maintainers; [ zimbatm ];
+    platforms = env.ruby.meta.platforms;
+  };
+}
diff --git a/pkgs/development/tools/ronn/gemset.nix b/pkgs/development/tools/ronn/gemset.nix
new file mode 100644
index 000000000000..ce804e1f9f5b
--- /dev/null
+++ b/pkgs/development/tools/ronn/gemset.nix
@@ -0,0 +1,34 @@
+{
+  hpricot = {
+    source = {
+      remotes = ["https://rubygems.org"];
+      sha256 = "1jn8x9ch79gqmnzgyz78kppavjh5lqx0y0r6frykga2b86rz9s6z";
+      type = "gem";
+    };
+    version = "0.8.6";
+  };
+  mustache = {
+    source = {
+      remotes = ["https://rubygems.org"];
+      sha256 = "1v4pdvgvs8gw0zbh5sy3l308amlsjg8sdfrkml0g0m0wwj4x7naf";
+      type = "gem";
+    };
+    version = "1.0.3";
+  };
+  rdiscount = {
+    source = {
+      remotes = ["https://rubygems.org"];
+      sha256 = "1arvk3k06prxasq1djbj065ixar4zl171340g7wr1ww4gj9makx3";
+      type = "gem";
+    };
+    version = "2.2.0.1";
+  };
+  ronn = {
+    source = {
+      remotes = ["https://rubygems.org"];
+      sha256 = "07plsxxfx5bxdk72ii9za6km0ziqlq8jh3bicr4774dalga6zpw2";
+      type = "gem";
+    };
+    version = "0.7.3";
+  };
+}
\ No newline at end of file