diff options
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 123 |
1 files changed, 86 insertions, 37 deletions
@@ -1,19 +1,17 @@ { description = "sisu parser & document generator"; - inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; # "github:nixos/nixpkgs"; "github:NixOS/nixpkgs/nixpkgs-unstable"; "nixpkgs/nixos-unstable"; "nixpkgs/nixos-21.11"; - inputs.flake-utils.url = "github:numtide/flake-utils"; + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; outputs = { self, nixpkgs, - flake-utils, } @ inputs: let pname = "sisu"; version = "7.3.1"; shell = ./shell.nix; # ./default.nix; - devEnv = ./shell.nix; # ./.envrc; # ./shell.nix; # ./default.nix; - supportedSystems = ["x86_64-linux"]; # [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ]; + devEnv = ./.envrc; # ./.envrc; # ./shell.nix; # ./default.nix; + supportedSystems = [ "x86_64-linux" ]; # [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ]; forAllSystems = nixpkgs.lib.genAttrs supportedSystems; - nixpkgsFor = forAllSystems (system: import nixpkgs {inherit system;}); # nixpkgs instantiated for supported system types + nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; }); # nixpkgs instantiated for supported system types checkPhase = '' runHook preCheck runHook postCheck @@ -74,25 +72,25 @@ inherit shell; inherit devEnv; packages = [ - ruby_3_3 - rubyPackages_3_3.rake - rubyPackages_3_3.sqlite3 - rubyPackages_3_3.thor + ruby + rubyPackages.rake + rubyPackages.sqlite3 + rubyPackages.thor sqlite jq git ]; inherit shellHook; }; - dsh-epub = mkShell { + rsh-epub = mkShell { name = "sisu dev shell for epub output"; inherit shell; inherit devEnv; packages = [ - ruby_3_3 - rubyPackages_3_3.rake - rubyPackages_3_3.sqlite3 - rubyPackages_3_3.thor + ruby + rubyPackages.rake + rubyPackages.sqlite3 + rubyPackages.thor sqlite graphicsmagick zip @@ -112,39 +110,41 @@ sigil calibre #(suite includes: ebook-viewer) foliate + validatePkgConfig jq #git ]; inherit shellHook; }; - dsh-html = mkShell { + rsh-html = mkShell { name = "sisu dev shell for html output"; inherit shell; inherit devEnv; packages = [ - ruby_3_3 - rubyPackages_3_3.rake - rubyPackages_3_3.sqlite3 - rubyPackages_3_3.thor + ruby + rubyPackages.rake + rubyPackages.sqlite3 + rubyPackages.thor sqlite graphicsmagick zip unzip xz + validatePkgConfig jq #git ]; inherit shellHook; }; - dsh-latex-pdf = mkShell { + rsh-latex-pdf = mkShell { name = "sisu dev shell for latex & pdf output"; inherit shell; inherit devEnv; packages = [ - ruby_3_3 - rubyPackages_3_3.rake - rubyPackages_3_3.sqlite3 - rubyPackages_3_3.thor + ruby + rubyPackages.rake + rubyPackages.sqlite3 + rubyPackages.thor sqlite graphicsmagick zip @@ -154,51 +154,100 @@ source-serif-pro source-code-pro texlive.combined.scheme-full + # texliveFull # texliveTeTeX noto-fonts noto-fonts-cjk-sans takao + validatePkgConfig jq #git ]; inherit shellHook; }; - dsh-sqlite = mkShell { + rsh-comprehensive-shell = mkShell { + name = "comprehensive sisu dev shell (for epub & latex & pdf output)"; + inherit shell; + inherit devEnv; + packages = [ + ruby + rubyPackages.rake + rubyPackages.sqlite3 + rubyPackages.thor + sqlite + graphicsmagick + zip + unzip + xz + openssl + libxml2 + html-tidy + xmlstarlet + epubcheck + ebook_tools + libxml2 + html-tidy + xmlstarlet + epubcheck + ebook_tools + epr + sigil + calibre #(suite includes: ebook-viewer) + foliate + validatePkgConfig + jq + source-sans-pro + source-serif-pro + source-code-pro + texlive.combined.scheme-full + # texliveFull # texliveTeTeX + noto-fonts + noto-fonts-cjk-sans + takao + validatePkgConfig + jq + git + ]; + inherit shellHook; + }; + rsh-sqlite = mkShell { name = "sisu dev shell for sqlite3 output"; inherit shell; inherit devEnv; packages = [ - ruby_3_3 - rubyPackages_3_3.rake - rubyPackages_3_3.sqlite3 - rubyPackages_3_3.thor + ruby + rubyPackages.rake + rubyPackages.sqlite3 + rubyPackages.thor sqlite graphicsmagick zip unzip xz + validatePkgConfig jq #git ]; inherit shellHook; }; - dsh-i18n = mkShell { + rsh-i18n = mkShell { name = "sisu dev shell internationalization, po4a"; inherit shell; inherit devEnv; packages = [ - ruby_3_3 - rubyPackages_3_3.rake - rubyPackages_3_3.sqlite3 - rubyPackages_3_3.thor + ruby + rubyPackages.rake + rubyPackages.sqlite3 + rubyPackages.thor sqlite graphicsmagick perl538Packages.Po4a + validatePkgConfig jq #git ]; inherit shellHook; }; - #default = import ./shell.nix {inherit pkgs;}; - }); + #default = import ./shell.nix { inherit pkgs; }; + }); }; } |