stuebinm
4dc9cdac91
this should not change their behaviour with "nix run", which was the reason for putting them there in the first place (however, it does remove the ability to build them with "nix build", but afaik this has never been used by anyone). This means the packages.* output is now left unused, so we can use it instead for things that actually are programs which want to expose (see the next commit after this one for an example).
20 lines
376 B
Nix
20 lines
376 B
Nix
{ stdenvNoCC, sfz, writeShellScriptBin }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
name = "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/hacc.earth
|
|
${sfz}/bin/sfz "$@"
|
|
'';
|
|
}
|