From ba9da295a0efefc0537d7554b2f4488ae94ece2d Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Thu, 4 Feb 2021 22:12:27 -0500 Subject: shell_spine.nix added --- nix/shell/shell_spine.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 nix/shell/shell_spine.nix (limited to 'nix') diff --git a/nix/shell/shell_spine.nix b/nix/shell/shell_spine.nix new file mode 100755 index 0000000..0c0deb6 --- /dev/null +++ b/nix/shell/shell_spine.nix @@ -0,0 +1,18 @@ +{ pkgs ? import {} }: +pkgs.mkShell { + buildInputs = with pkgs; [ + (import ../pkglst/shell-pkgs.nix { inherit pkgs; }) + ]; + buildPhase = "nix build -f default.nix"; + shellHook = '' + if [[ -e ".envrc" ]]; then + source .envrc + fi + nix-build + RUN="./result/bin/spine --very-verbose --theme-light --html --epub --sqlite-discrete --output=/tmp/www ./data/pod/sisu-markup" + $RUN + echo "built spine ... @ ./result/bin/spine" + echo "& (tested with) run:" + echo " $RUN" + ''; +} -- cgit v1.2.3