diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2021-02-04 22:12:27 -0500 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2021-02-04 22:25:39 -0500 |
commit | ba9da295a0efefc0537d7554b2f4488ae94ece2d (patch) | |
tree | 32c2e6d1d6d87c4dd4c322210baedb042be71ecf /nix | |
parent | some pod samples including default generated and sisu-markup (diff) |
shell_spine.nix added
Diffstat (limited to 'nix')
-rwxr-xr-x | nix/shell/shell_spine.nix | 18 |
1 files changed, 18 insertions, 0 deletions
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 <nixpkgs> {} }: +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" + ''; +} |