haccfiles/websites/help.studentsforfuture.info/default.nix

21 lines
397 B
Nix
Raw Normal View History

{ stdenvNoCC, sfz, writeShellScriptBin }:
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 = writeShellScriptBin "watch" ''
cd $(git rev-parse --show-toplevel)/websites/help.studentsforfuture.info
${sfz}/bin/sfz "$@"
'';
}