haccfiles/websites/hacc.earth/default.nix

20 lines
316 B
Nix
Raw Normal View History

{ stdenvNoCC, sfz, writeScriptBin }:
stdenvNoCC.mkDerivation rec {
name = "hacc.earth-static";
src = ./.;
phases = [ "buildPhase" ];
buildPhase = ''
cd $src
mkdir -p $out
cp -r * $out
rm $out/default.nix
'';
watch = writeScriptBin "watch" ''
${sfz}/bin/sfz -r ${src} "$@"
'';
}