anchor.diff:  , stdenv
   , lib
   , fetchFromGitHub
  -, unstableGitUpdater
  +, fetchpatch
  +, nix-update-script
   , qtbase
   , qtsvg
   , qttools
  
positive.code: 
  mkDerivation rec {
    pname = "punes";
    version = "unstable-2021-09-11";
  
    src = fetchFromGitHub {
      owner = "punesemu";
      repo = "puNES";
      rev = "60ca36fcb066c41d0b3f2b550ca94dc7d12d84d6";
      sha256 = "JOi6AE1bpAc/wj9fQqHrUNc6vceeUyP0phT2f9kcJTY=";
    };
  
    postPatch = ''
      substituteInPlace configure.ac \
  
negative.code:     "--with-ffmpeg"
    ];
  
    passthru.updateScript = nix-update-script {
      attrPath = pname;
    };
  
    meta = with lib; {
  