spellblade/default.nix
Christine Dodrill 60e561c239 make nix build work
Signed-off-by: Christine Dodrill <me@christine.website>
2021-04-23 07:40:33 -04:00

30 lines
560 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 .
mkdir out
cd ./src && ./build.sh && cd ..
'';
installPhase = ''
mkdir -p $out
cp -vrf out/* $out
'';
}