diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-14 23:36:00 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-21 17:16:03 -0400 |
| commit | cdee282263e355953b27f29344f25f48092e1922 (patch) | |
| tree | f46a14ba95c515262a98d54a13016ae2f0ab52af /flake.nix | |
| parent | 0.24.1 (diff) | |
things nix, including flake.nix update
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 72 |
1 files changed, 68 insertions, 4 deletions
@@ -1,6 +1,6 @@ { description = "a sisu like parser & document generator"; - inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + inputs.nixpkgs.url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.zst"; outputs = { self, nixpkgs, @@ -202,6 +202,14 @@ #dillo ]; }; + dsh-odf = mkDevShell { + pkgs = pkgs-nix; + name = "spine-${version} dev shell for epub output"; + compiler = pkgs-nix.ldc; + extraPackages = with pkgs-nix; [ + jing + ]; + }; dsh-latex-pdf = mkDevShell { pkgs = pkgs-nix; name = "spine-${version} dev shell for latex & pdf output"; @@ -210,20 +218,76 @@ source-sans-pro source-serif-pro source-code-pro - texlive.combined.scheme-full + texliveFull ]; }; dsh-sqlite = mkDevShell { pkgs = pkgs-nix; name = "spine-${version} dev shell for sqlite3 output"; compiler = pkgs-nix.ldc; + extraPackages = with pkgs-nix; [ + #sqlite + sqlite-interactive + litecli + visidata + sqlitebrowser + sqlitestudio + dbeaver-bin + ]; }; - dsh-i18n = mkDevShell { + dsh-translations = mkDevShell { pkgs = pkgs-nix; name = "spine-${version} dev shell for internationalization, po4a"; compiler = pkgs-nix.ldc; extraPackages = with pkgs-nix; [ - perlPackages.Po4a + po4a + gettext + ]; + }; + dsh-production = mkDevShell { + pkgs = pkgs-nix; + name = "spine-${version} dev shell: production run and its checks"; + compiler = pkgs-nix.ldc; + extraPackages = with pkgs-nix; [ + # the suite shells out to these two; without them run-tests.sh + # re-execs itself into a nix shell that has them + sqlite-interactive # readline cli; base sqlite has none + epubcheck + unzip # containers: every one spine writes is a zip + # xml and html by eye and by check + libxml2 # xmllint + xmlstarlet # xml sel -t -v + html-tidy # the scroll html, which epubcheck never sees + # pdf + poppler_utils # pdfinfo, pdftotext + #texliveFull # NOT texlive.combined.scheme-full: deprecated, + file # what a file is + ]; + }; + dsh-production-post = mkDevShell { + pkgs = pkgs-nix; + name = "spine-${version} dev shell: production run and its checks"; + compiler = pkgs-nix.ldc; + extraPackages = with pkgs-nix; [ + # the suite shells out to these two; without them run-tests.sh + # re-execs itself into a nix shell that has them + sqlite-interactive # readline cli; base sqlite has none + datasette # serves an .ocda.db as a browsable, queryable web page with a json api, one command, no configuration + epubcheck + diffoscope # diffs two epubs, two odts or two pdfs by content rather (than as bytes) (useful when output moves and cmp only says "differ") + unzip # containers: every one spine writes is a zip + # xml and html by eye and by check + libxml2 # xmllint + xmlstarlet # xml sel -t -v + html-tidy # the scroll html, which epubcheck never sees + xmlstarlet + ebook_tools + #jing + # pdf + poppler_utils # pdfinfo, pdftotext + texliveFull # NOT texlive.combined.scheme-full: deprecated, + file # what a file is + coreutils # sha256sum and numfmt guaranteed, for checking a digests.txt line by hand ]; }; }); |
