aboutsummaryrefslogtreecommitdiffhomepage
path: root/nix/shell/shell_spine.nix
blob: 0c0deb6889a2759645a5b9ea31d47ce0d896cc27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"
  '';
}