Add rst2pdf

Does not exist yet, add own derivation via overlay.
Exclude tests for documented reasons.

Fix broken indentation in readme.rst
(used as test case for installed rst2pdf);
This commit is contained in:
Daniel Siepmann 2022-02-08 19:57:30 +01:00
parent f12bfc8974
commit 00b8f205e4
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
3 changed files with 40 additions and 7 deletions

View file

@ -40,6 +40,7 @@
pkgs.st
pkgs.ncdu
pkgs.tree
pkgs.rst2pdf
pkgs.keepassxc

View file

@ -0,0 +1,34 @@
self: super: {
rst2pdf = super.pkgs.python3.pkgs.buildPythonApplication rec {
pname = "rst2pdf";
version = "0.99";
src = super.pkgs.python3.pkgs.fetchPypi {
inherit pname version;
sha256 = "8fa23fa93bddd1f52d058ceaeab6582c145546d80f2f8a95974f3703bd6c8152";
};
# We do not install extras, and tests for extras might fail
# Extras are sphinx, plantuml, …
doCheck = false;
propagatedBuildInputs = with super.pkgs.python3.pkgs; [
docutils
importlib-metadata
jinja2
packaging
pygments
pyyaml
reportlab
smartypants
pillow
];
meta = with super.lib; {
description = "Convert reStructured Text to PDF via ReportLab.";
homepage = "https://rst2pdf.org/";
license = licenses.mit;
};
};
}

View file

@ -65,11 +65,11 @@ Update
The following will update the whole system and clean things up::
nix-channel --update \
&& home-manager switch \
&& home-manager expire-generations '-30 days' \
&& nix-env --delete-generations +5 \
&& nix-store --gc
nix-channel --update \
&& home-manager switch \
&& home-manager expire-generations '-30 days' \
&& nix-env --delete-generations +5 \
&& nix-store --gc
This will update the channel (fetch state of nixpkgs).
It then will update system.
@ -99,8 +99,6 @@ No particular order:
* mytop
* rst2pdf
* Migrate ssh config (I don't really like to expose customer server names and configs to outer world, how to handle?)
* Migrate PGP?