3
0
Fork 0
forked from mirrors/nixpkgs

docbookrx: init at unstable-2018-05-02

This commit is contained in:
adisbladis 2020-01-23 18:52:54 +00:00
parent 3b606fefb5
commit 95917c20ab
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7
5 changed files with 100 additions and 0 deletions

View file

@ -0,0 +1,2 @@
source 'https://rubygems.org'
gem 'nokogiri', '~> 1.8.0'

View 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

View 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;
};
}

View 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";
};
}

View file

@ -2845,6 +2845,8 @@ in
docbook2mdoc = callPackage ../tools/misc/docbook2mdoc { };
docbookrx = callPackage ../tools/typesetting/docbookrx { };
docear = callPackage ../applications/office/docear { };
dockbarx = callPackage ../applications/misc/dockbarx { };