spellblade/default.nix
Christine Dodrill f9403010cd add scene 1 and the first attempt at build scripts
Signed-off-by: Christine Dodrill <me@christine.website>
2021-04-23 07:34:06 -04:00

29 lines
547 B
Nix

{ pkgs ? import <nixpkgs> { } }:
let
nur = import (builtins.fetchTarball
"https://github.com/nix-community/NUR/archive/master.tar.gz") {
inherit pkgs;
};
version = "devel";
in pkgs.stdenv.mkDerivation {
pname = "Spellblade";
inherit version;
src = ./.;
phases = "buildPhase installPhase";
buildInputs = with pkgs; [
calibre
nur.repos.mic92.pandoc-bin
];
buildPhase = ''
cp -rf $src/src .
cd ./src && ./build.sh && cd ..
'';
installPhase = ''
mkdir -p $out
cp -vrf book/* $out
'';
}