anchor.diff:      '';
     };
   
  -  gitignoreSource =
  -    (import (pkgs.fetchFromGitHub {
  -      owner = "hercules-ci";
  -      repo = "gitignore.nix";
  -      rev = "211907489e9f198594c0eb0ca9256a1949c9d412";
  -      sha256 = "sha256-qHu3uZ/o9jBHiA3MEKHJ06k7w4heOhA+4HCSIvflRxo=";
  -    }) { inherit lib; }).gitignoreSource;
  -
  -  csoundSrc = gitignoreSource ../..;
  +  csoundSrc = builtins.path {
  +    path = ./. + "../../../";
  +    filter = path: type:
  +      ((builtins.match ".*/Engine.*" path != null ||
  +        builtins.match ".*/H.*" path != null ||
  +        builtins.match ".*/InOut.*" path != null ||
  +        builtins.match ".*/OOps.*" path != null ||
  +        builtins.match ".*/Opcodes.*" path != null ||
  +        builtins.match ".*/Top.*" path != null ||
  +        builtins.match ".*/include.*" path != null) &&
  +      (lib.strings.hasSuffix ".c" path ||
  +       lib.strings.hasSuffix ".cpp" path ||
  +       lib.strings.hasSuffix ".h" path ||
  +       lib.strings.hasSuffix ".h.in" path ||
  +       lib.strings.hasSuffix ".hpp" path ||
  +       lib.strings.hasSuffix ".hpp.in" path ||
  +       lib.strings.hasSuffix ".y" path ||
  +       lib.strings.hasSuffix ".lex" path ||
  +       type == "directory"));
  +  };
   
     preprocFlags = ''
       -DGIT_HASH_VALUE=HEAD \
  
positive.code:     ${patchClock}/bin/patchClock Top/csound.c
  
      mv include/version.h.in include/version.h
      substituteInPlace Top/csmodule.c \
        --replace '#include <dlfcn.h>' ""
      substituteInPlace Engine/csound_orc.y \
  
negative.code:   '';
  
    buildPhase = ''
      mkdir -p build && cd build
      cp ${./csound_wasm.c} ./csound_wasm.c
      cp ${./unsupported_opcodes.c} ./unsupported_opcodes.c
  