From d7e43b0d27a4096fd5b237be4dc031e3ee76c42d Mon Sep 17 00:00:00 2001 From: Ram Kromberg Date: Sun, 18 Sep 2016 02:21:58 +0300 Subject: [PATCH] docbook2mdoc: init at 0.0.9 --- pkgs/tools/misc/docbook2mdoc/default.nix | 23 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/tools/misc/docbook2mdoc/default.nix diff --git a/pkgs/tools/misc/docbook2mdoc/default.nix b/pkgs/tools/misc/docbook2mdoc/default.nix new file mode 100644 index 000000000000..fbe1cc22376e --- /dev/null +++ b/pkgs/tools/misc/docbook2mdoc/default.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchurl, expat }: + +stdenv.mkDerivation rec { + name = "docbook2mdoc-${version}"; + version = "0.0.9"; + + src = fetchurl { + url = "http://mdocml.bsd.lv/docbook2mdoc/snapshots/${name}.tgz"; + sha256 = "07il80sg89xf6ym4bry6hxdacfzqgbwkxzyf7bjaihmw5jj0lclk"; + }; + + buildInputs = [ expat.dev ]; + + makeFlags = [ "PREFIX=$(out)" ]; + + meta = with stdenv.lib; { + homepage = "http://mdocml.bsd.lv/"; + description = "converter from DocBook V4.x and v5.x XML into mdoc"; + license = licenses.isc; + platforms = platforms.all; + maintainers = with maintainers; [ ramkromberg ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7b69239c5b7f..75e1b15d0054 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1393,6 +1393,8 @@ in inherit (perlPackages) XMLSAX XMLParser XMLNamespaceSupport; }; + docbook2mdoc = callPackage ../tools/misc/docbook2mdoc { }; + dog = callPackage ../tools/system/dog { }; dosfstools = callPackage ../tools/filesystems/dosfstools { };