anchor.diff:      broken = stdenv.isDarwin; # TODO: try to use xcbuild
     };
   }
  -
  
positive.code: , stdenv
  , fetchFromGitHub
  , pkg-config
  , makeWrapper
  , SDL
  , SDL_image
  , SDL_ttf
  , gtk2
  , glib
  }:
  
  stdenv.mkDerivation rec {
    pname = "hivelytracker";
    version = "unstable-2020-08-19";
  
    src = fetchFromGitHub {
      owner = "pete-gordon";
      repo = "hivelytracker";
      rev = "c8e3c7a5ee9f4a07cb4a941caecf7e4c4f4d40e0";
      sha256 = "1nqianlf1msir6wqwapi7ys1vbmf6aik58wa54b6cn5v6kwxh75a";
    };
  
    nativeBuildInputs = [
      pkg-config
      makeWrapper
    ];
  
    buildInputs = [
      SDL
      SDL_image
      SDL_ttf
      gtk2
      glib
    ];
  
    makeFlags = [
  
negative.code:     "PREFIX=$(out)"
    ];
  
    # Also build the hvl2wav tool
    postBuild = ''
      make -C hvl2wav
    '';
  
    postInstall = ''
      # Also install the hvl2wav tool
      install -Dm755 hvl2wav/hvl2wav $out/bin/hvl2wav
    '';
  