b7434d1894
Signed-off-by: Christine Dodrill <me@christine.website>
32 lines
577 B
Nix
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
|
|
'';
|
|
}
|