anchor.diff:      pkg-config
       which
       makeWrapper
  +    python3
     ];
   
     buildInputs = [
  
positive.code: , vorbis-tools
  }:
  
  stdenv.mkDerivation {
    pname = "uade123";
    version = "unstable-2021-05-21";
  
    src = fetchFromGitLab {
      owner = "uade-music-player";
      repo = "uade";
      rev = "7169a46e777d19957cd7ff8ac31843203e725ddc";
      sha256 = "1dm7c924fy79y3wkb0qi71m1k6yw1x6j3whw7d0w4ka9hv6za03b";
    };
  
    postPatch = ''
      patchShebangs .
      substituteInPlace src/frontends/mod2ogg/mod2ogg2.sh.in \
        --replace '-e stat' '-n stat' \
        --replace '/usr/local' "$out"
  
negative.code:       --prefix PATH : $out/bin:${lib.makeBinPath [ sox lame flac vorbis-tools ]}
      # This is an old script, don't break expectations by renaming it
      ln -s $out/bin/mod2ogg2{.sh,}
      wrapProgram $out/bin/generate_amiga_oscilloscope_view \
        --prefix PYTHONPATH : "$PYTHONPATH:$out/${python3.sitePackages}"
    '';
  
    meta = with lib; {
  