summaryrefslogtreecommitdiffstats
path: root/pkgs/development/tools/documentation
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2019-11-24 17:25:07 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2019-11-24 17:25:07 +0000
commitd0d5136cce5e0cbe2305c53090bd4bd886114746 (patch)
tree70092947536a3c65e215df9df20e571e34652f7a /pkgs/development/tools/documentation
parent9b090ccbca3f7dd26d91db06e96e8bf8282c37ca (diff)
parent195c263a812dec532656dcfd5d0360458cdc93fd (diff)
Merge remote-tracking branch 'upstream/master' into wrapper-pname-support
Diffstat (limited to 'pkgs/development/tools/documentation')
-rw-r--r--pkgs/development/tools/documentation/gnome-doc-utils/default.nix5
-rw-r--r--pkgs/development/tools/documentation/gtk-doc/0001-highlight-fix-permission-on-file-style.patch24
-rw-r--r--pkgs/development/tools/documentation/gtk-doc/default.nix9
-rw-r--r--pkgs/development/tools/documentation/mdsh/default.nix7
-rw-r--r--pkgs/development/tools/documentation/mkdocs/default.nix15
5 files changed, 25 insertions, 35 deletions
diff --git a/pkgs/development/tools/documentation/gnome-doc-utils/default.nix b/pkgs/development/tools/documentation/gnome-doc-utils/default.nix
index 2f29fb2fbad2..54c37fa61837 100644
--- a/pkgs/development/tools/documentation/gnome-doc-utils/default.nix
+++ b/pkgs/development/tools/documentation/gnome-doc-utils/default.nix
@@ -29,6 +29,11 @@ python2Packages.buildPythonApplication rec {
};
};
+ postFixup = ''
+ # Do not propagate Python
+ rm $out/nix-support/propagated-build-inputs
+ '';
+
meta = with stdenv.lib; {
description = "Collection of documentation utilities for the GNOME project";
homepage = "https://gitlab.gnome.org/GNOME/gnome-doc-utils";
diff --git a/pkgs/development/tools/documentation/gtk-doc/0001-highlight-fix-permission-on-file-style.patch b/pkgs/development/tools/documentation/gtk-doc/0001-highlight-fix-permission-on-file-style.patch
deleted file mode 100644
index f7e37a1a5e5a..000000000000
--- a/pkgs/development/tools/documentation/gtk-doc/0001-highlight-fix-permission-on-file-style.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-From 95a75c95c5c4e641ce7cda0ded968d66f07f822a Mon Sep 17 00:00:00 2001
-From: worldofpeace <worldofpeace@protonmail.ch>
-Date: Sat, 18 May 2019 14:44:08 -0400
-Subject: [PATCH] highlight: fix permission on file style
-
----
- gtkdoc/highlight.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/gtkdoc/highlight.py b/gtkdoc/highlight.py
-index 8f6e470..d11c432 100644
---- a/gtkdoc/highlight.py
-+++ b/gtkdoc/highlight.py
-@@ -47,6 +47,6 @@ def highlight_code(code, lang='c'):
-
-
- def append_style_defs(css_file_name):
-- os.chmod(css_file_name, stat.S_IWRITE)
-+ os.chmod(css_file_name, 0o664)
- with open(css_file_name, 'at', newline='\n', encoding='utf-8') as css:
- css.write(HTML_FORMATTER.get_style_defs())
---
-2.21.0
-
diff --git a/pkgs/development/tools/documentation/gtk-doc/default.nix b/pkgs/development/tools/documentation/gtk-doc/default.nix
index 7792d14775c9..35d718ecd67b 100644
--- a/pkgs/development/tools/documentation/gtk-doc/default.nix
+++ b/pkgs/development/tools/documentation/gtk-doc/default.nix
@@ -15,20 +15,18 @@
stdenv.mkDerivation rec {
pname = "gtk-doc";
- version = "1.30";
+ version = "1.32";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = pname;
rev = "GTK_DOC_${stdenv.lib.replaceStrings ["."] ["_"] version }";
- sha256 = "05lr6apj3pd3s59a7k6p45k9ywwrp577ra4pvkhxvb5p7v90c2fi";
+ sha256 = "14fihxj662gg4ln1ngff6s52zzkpbcc58qa0nxysxypnhp0h4ypk";
};
patches = [
passthru.respect_xml_catalog_files_var_patch
- # https://gitlab.gnome.org/GNOME/gtk-doc/issues/84
- ./0001-highlight-fix-permission-on-file-style.patch
];
outputDevdoc = "out";
@@ -45,6 +43,7 @@ stdenv.mkDerivation rec {
libxslt
pkgconfig
python3
+ python3.pkgs.pygments # Needed for https://gitlab.gnome.org/GNOME/gtk-doc/blob/GTK_DOC_1_32/meson.build#L42
libxml2Python
]
++ stdenv.lib.optional withDblatex dblatex
@@ -77,6 +76,6 @@ stdenv.mkDerivation rec {
description = "Tools to extract documentation embedded in GTK and GNOME source code";
homepage = "https://www.gtk.org/gtk-doc";
license = licenses.gpl2;
- maintainers = with maintainers; [ pSub ];
+ maintainers = with maintainers; [ pSub worldofpeace ];
};
}
diff --git a/pkgs/development/tools/documentation/mdsh/default.nix b/pkgs/development/tools/documentation/mdsh/default.nix
index a88963c6e2cd..2ca2ef29dd26 100644
--- a/pkgs/development/tools/documentation/mdsh/default.nix
+++ b/pkgs/development/tools/documentation/mdsh/default.nix
@@ -2,16 +2,17 @@
rustPlatform.buildRustPackage rec {
pname = "mdsh";
- version = "0.1.4";
+ version = "0.3.0";
src = fetchFromGitHub {
owner = "zimbatm";
repo = "mdsh";
rev = "v${version}";
- sha256 = "0m3f5mrdmnmkfsy7mc6x3jf4ainmq0z42mv935ikcdbjwwjbd5gq";
+ sha256 = "1a9i6h8fzrrfzjyfxaps73lxgkz92k0bnmwbjbwdmiwci4qgi9ms";
};
- cargoSha256 = "11kzl0ns84xhdacn0k7nilgzgpwazmaaqdjf2kcarxf2h01b0rjv";
+ cargoSha256 = "0rarpzfigyxr6s0ba13z00kvnms29qkjfbfjkay72mb6xn7f1059";
+ verifyCargoDeps = true;
meta = with stdenv.lib; {
description = "Markdown shell pre-processor";
diff --git a/pkgs/development/tools/documentation/mkdocs/default.nix b/pkgs/development/tools/documentation/mkdocs/default.nix
index 5f3dff95e358..e9e116280a03 100644
--- a/pkgs/development/tools/documentation/mkdocs/default.nix
+++ b/pkgs/development/tools/documentation/mkdocs/default.nix
@@ -1,4 +1,4 @@
-{ lib, python, fetchFromGitHub }:
+{ stdenv, lib, python, fetchFromGitHub }:
with python.pkgs;
@@ -35,9 +35,18 @@ buildPythonApplication rec {
backports_tempfile
];
- meta = {
+ meta = with stdenv.lib; {
+ description = "Project documentation with Markdown / static website generator";
+ longDescription = ''
+ MkDocs is a fast, simple and downright gorgeous static site generator that's
+ geared towards building project documentation. Documentation source files
+ are written in Markdown, and configured with a single YAML configuration file.
+
+ MkDocs can also be used to generate general-purpose Websites.
+ '';
homepage = http://mkdocs.org/;
- description = "Project documentation with Markdown";
license = lib.licenses.bsd2;
+ platforms = platforms.unix;
+ maintainers = [ maintainers.rkoe ];
};
}