docbookrx: init at unstable-2018-05-02
This commit is contained in:
parent
3b606fefb5
commit
95917c20ab
2
pkgs/tools/typesetting/docbookrx/Gemfile
Normal file
2
pkgs/tools/typesetting/docbookrx/Gemfile
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
source 'https://rubygems.org'
|
||||||
|
gem 'nokogiri', '~> 1.8.0'
|
15
pkgs/tools/typesetting/docbookrx/Gemfile.lock
Normal file
15
pkgs/tools/typesetting/docbookrx/Gemfile.lock
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
GEM
|
||||||
|
remote: https://rubygems.org/
|
||||||
|
specs:
|
||||||
|
mini_portile2 (2.3.0)
|
||||||
|
nokogiri (1.8.5)
|
||||||
|
mini_portile2 (~> 2.3.0)
|
||||||
|
|
||||||
|
PLATFORMS
|
||||||
|
ruby
|
||||||
|
|
||||||
|
DEPENDENCIES
|
||||||
|
nokogiri (~> 1.8.0)
|
||||||
|
|
||||||
|
BUNDLED WITH
|
||||||
|
1.17.3
|
58
pkgs/tools/typesetting/docbookrx/default.nix
Normal file
58
pkgs/tools/typesetting/docbookrx/default.nix
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
{ lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, stdenv
|
||||||
|
, ruby
|
||||||
|
, bundlerEnv
|
||||||
|
# , libxml2
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
env = bundlerEnv {
|
||||||
|
name = "docbookrx-env";
|
||||||
|
gemdir = ./.;
|
||||||
|
|
||||||
|
inherit ruby;
|
||||||
|
|
||||||
|
# buildInputs = [
|
||||||
|
# libxml2
|
||||||
|
# ];
|
||||||
|
|
||||||
|
gemfile = ./Gemfile;
|
||||||
|
lockfile = ./Gemfile.lock;
|
||||||
|
gemset = ./gemset.nix;
|
||||||
|
};
|
||||||
|
|
||||||
|
in stdenv.mkDerivation {
|
||||||
|
|
||||||
|
pname = "docbookrx";
|
||||||
|
version = "unstable-2018-05-02";
|
||||||
|
|
||||||
|
buildInputs = [ env.wrappedRuby ];
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "asciidoctor";
|
||||||
|
repo = "docbookrx";
|
||||||
|
rev = "682d8c2f7a9e1e6f546c5f7d0067353621c68a7a";
|
||||||
|
sha256 = "07jilh17gj8xx4ps4ln787izmhv8xwwwv6fkqqg3pwjni5qikx7w";
|
||||||
|
};
|
||||||
|
|
||||||
|
# TODO: I don't know ruby packaging but this does the trick for now
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp -a bin/docbookrx $out/bin
|
||||||
|
cp -a lib $out
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "(An early version of) a DocBook to AsciiDoc converter written in Ruby.";
|
||||||
|
homepage = https://asciidoctor.org/;
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
23
pkgs/tools/typesetting/docbookrx/gemset.nix
Normal file
23
pkgs/tools/typesetting/docbookrx/gemset.nix
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
mini_portile2 = {
|
||||||
|
groups = ["default"];
|
||||||
|
platforms = [];
|
||||||
|
source = {
|
||||||
|
remotes = ["https://rubygems.org"];
|
||||||
|
sha256 = "13d32jjadpjj6d2wdhkfpsmy68zjx90p49bgf8f7nkpz86r1fr11";
|
||||||
|
type = "gem";
|
||||||
|
};
|
||||||
|
version = "2.3.0";
|
||||||
|
};
|
||||||
|
nokogiri = {
|
||||||
|
dependencies = ["mini_portile2"];
|
||||||
|
groups = ["default"];
|
||||||
|
platforms = [];
|
||||||
|
source = {
|
||||||
|
remotes = ["https://rubygems.org"];
|
||||||
|
sha256 = "0byyxrazkfm29ypcx5q4syrv126nvjnf7z6bqi01sqkv4llsi4qz";
|
||||||
|
type = "gem";
|
||||||
|
};
|
||||||
|
version = "1.8.5";
|
||||||
|
};
|
||||||
|
}
|
@ -2845,6 +2845,8 @@ in
|
|||||||
|
|
||||||
docbook2mdoc = callPackage ../tools/misc/docbook2mdoc { };
|
docbook2mdoc = callPackage ../tools/misc/docbook2mdoc { };
|
||||||
|
|
||||||
|
docbookrx = callPackage ../tools/typesetting/docbookrx { };
|
||||||
|
|
||||||
docear = callPackage ../applications/office/docear { };
|
docear = callPackage ../applications/office/docear { };
|
||||||
|
|
||||||
dockbarx = callPackage ../applications/misc/dockbarx { };
|
dockbarx = callPackage ../applications/misc/dockbarx { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user