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:
parent
f12bfc8974
commit
00b8f205e4
34
overlays/rst2pdf/default.nix
Normal file
34
overlays/rst2pdf/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
12
readme.rst
12
readme.rst
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue