forked from hacc/haccfiles
stuebinm
a6d21f4fd9
(since every time we have to change anything on these I get annoyed at having to remember how to build these. Now you can just use `nix run`!)
19 lines
315 B
Nix
19 lines
315 B
Nix
{ 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}
|
|
'';
|
|
}
|