spellblade/default.nix
Christine Dodrill b7434d1894 use redo
Signed-off-by: Christine Dodrill <me@christine.website>
2021-04-23 14:22:52 -04:00

32 lines
577 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
redo-apenwarr
];
buildPhase = ''
cp -rf $src/src .
cp -rf $src/*.do .
mkdir -p out
redo
'';
installPhase = ''
mkdir -p $out
cp -vrf out/* $out
'';
}