haccfiles/websites/muc.hacc.earth/default.nix

20 lines
315 B
Nix
Raw Normal View History

{ stdenvNoCC, sfz, writeScriptBin }:
stdenvNoCC.mkDerivation rec {
name = "muc.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}
'';
}