{ pkgs ? import { } }: 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 ''; }