2024-08-30 15:52:57 +00:00
|
|
|
{ stdenvNoCC, sfz, writeShellScriptBin }:
|
2022-01-10 22:43:10 +00:00
|
|
|
|
2023-02-24 16:33:48 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2022-01-10 22:43:10 +00:00
|
|
|
name = "hacc.earth-static";
|
|
|
|
|
|
|
|
src = ./.;
|
|
|
|
|
|
|
|
phases = [ "buildPhase" ];
|
|
|
|
buildPhase = ''
|
|
|
|
cd $src
|
|
|
|
mkdir -p $out
|
|
|
|
cp -r * $out
|
|
|
|
rm $out/default.nix
|
|
|
|
'';
|
|
|
|
|
2024-08-30 15:52:57 +00:00
|
|
|
watch = writeShellScriptBin "watch" ''
|
2024-01-11 23:41:15 +00:00
|
|
|
cd $(git rev-parse --show-toplevel)/websites/hacc.earth
|
|
|
|
${sfz}/bin/sfz "$@"
|
2023-02-24 16:33:48 +00:00
|
|
|
'';
|
2022-01-10 22:43:10 +00:00
|
|
|
}
|