summary refs log tree commit diff
path: root/pkgs/tools/typesetting/skribilo
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2018-06-27 15:22:03 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2018-06-27 15:23:20 -0300
commit8f5f3874751493e33f0eb122c006ede3ad0c8751 (patch)
treefeea0f3ef108eb98646cf05ce01d216318f5952e /pkgs/tools/typesetting/skribilo
parent49008f9c71ace2e70ba97604bad4119f2ee25863 (diff)
downloadnixpkgs-8f5f3874751493e33f0eb122c006ede3ad0c8751.tar
nixpkgs-8f5f3874751493e33f0eb122c006ede3ad0c8751.tar.gz
nixpkgs-8f5f3874751493e33f0eb122c006ede3ad0c8751.tar.bz2
nixpkgs-8f5f3874751493e33f0eb122c006ede3ad0c8751.tar.lz
nixpkgs-8f5f3874751493e33f0eb122c006ede3ad0c8751.tar.xz
nixpkgs-8f5f3874751493e33f0eb122c006ede3ad0c8751.tar.zst
nixpkgs-8f5f3874751493e33f0eb122c006ede3ad0c8751.zip
skribilo: init at 0.9.4
Diffstat (limited to 'pkgs/tools/typesetting/skribilo')
-rw-r--r--pkgs/tools/typesetting/skribilo/default.nix58
1 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/tools/typesetting/skribilo/default.nix b/pkgs/tools/typesetting/skribilo/default.nix
new file mode 100644
index 00000000000..355d7a055e8
--- /dev/null
+++ b/pkgs/tools/typesetting/skribilo/default.nix
@@ -0,0 +1,58 @@
+{ stdenv, fetchurl, pkgconfig, gettext
+, guile, guile-reader, guile-lib
+, ploticus, imagemagick
+, ghostscript, transfig
+, enableEmacs ? false, emacs ? null
+, enableLout ? true, lout ? null
+, enableTex ? true, tex ? null
+, makeWrapper }:
+
+with stdenv.lib;
+stdenv.mkDerivation rec {
+
+  name = "skribilo-${version}";
+  version = "0.9.4";
+
+  src = fetchurl {
+    url = "http://download.savannah.nongnu.org/releases/skribilo/${name}.tar.gz";
+    sha256 = "06ywnfjfa9sxrzdszb5sryzg266380g519cm64kq62sskzl7zmnf";
+  };
+
+  nativeBuildInputs = [ pkgconfig makeWrapper ];
+
+  buildInputs = [ gettext guile ploticus imagemagick ghostscript transfig ]
+  ++ optional enableEmacs emacs
+  ++ optional enableLout lout
+  ++ optional enableTex tex;
+
+  propagatedBuildInputs = [ guile-reader guile-lib ];
+
+  postInstall = ''
+    wrapProgram $out/bin/skribilo \
+      --prefix GUILE_LOAD_PATH : "$out/share/guile/site:${guile-lib}/share/guile/site:${guile-reader}/share/guile/site" \
+      --prefix GUILE_LOAD_COMPILED_PATH : "$out/share/guile/site:${guile-lib}/share/guile/site:${guile-reader}/share/guile/site"
+  '';
+
+  meta = {
+    description = "The Ultimate Document Programming Framework";
+    longDescription = ''
+      Skribilo is a free document production tool that takes a
+      structured document representation as its input and renders that
+      document in a variety of output formats: HTML and Info for
+      on-line browsing, and Lout and LaTeX for high-quality hard
+      copies.
+
+      The input document can use Skribilo's markup language to provide
+      information about the document's structure, which is similar to
+      HTML or LaTeX and does not require expertise. Alternatively, it
+      can use a simpler, "markup-less" format that borrows from Emacs'
+      outline mode and from other conventions used in emails, Usenet
+      and text.
+    '';
+    homepage = https://www.nongnu.org/skribilo/;
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ AndersonTorres ];
+    platforms = platforms.unix;
+  };
+}
+# TODO: Better Emacs and TeX integration