mirror of
https://github.com/kmein/niveum
synced 2026-03-20 03:51:07 +01:00
feat: install pandoc users guide as man page
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
{ pkgs, lib, config, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
let
|
let
|
||||||
|
pandoc-doc = pkgs.callPackage <niveum/packages/man/pandoc.nix> {};
|
||||||
|
|
||||||
zoteroStyle = { name, sha256 }: {
|
zoteroStyle = { name, sha256 }: {
|
||||||
name = "${name}.csl";
|
name = "${name}.csl";
|
||||||
path = pkgs.fetchurl {
|
path = pkgs.fetchurl {
|
||||||
@@ -70,6 +72,7 @@ in {
|
|||||||
# gnumeric
|
# gnumeric
|
||||||
dia
|
dia
|
||||||
pandoc
|
pandoc
|
||||||
|
pandoc-doc
|
||||||
# proselint
|
# proselint
|
||||||
asciidoctor
|
asciidoctor
|
||||||
wordnet
|
wordnet
|
||||||
|
|||||||
14
packages/man/pandoc.nix
Normal file
14
packages/man/pandoc.nix
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{ stdenv, pandoc, lib, fetchgit }:
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "pandoc-doc";
|
||||||
|
version = pandoc.version;
|
||||||
|
src = fetchgit {
|
||||||
|
url = "https://github.com/jgm/pandoc";
|
||||||
|
rev = pandoc.version;
|
||||||
|
sha256 = "0s4mczbql35wh6bhyi542yln24f530rlsw6akcv7lmp083rrlpy4";
|
||||||
|
};
|
||||||
|
buildPhase = ''
|
||||||
|
mkdir -p $out/man/man1
|
||||||
|
${pandoc}/bin/pandoc -V section=1 --standalone --write=man $src/MANUAL.txt -o $out/man/man1/pandoc.1
|
||||||
|
'';
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user