anchor.diff:      sha256 = "0hng5krwgc1h9bz1xlkp2hwnvas965nd7sb3z9mb2m6x9ghxlacz";
     };
   
  -  nativeBuildInputs = [ pkgconfig ];
  +  nativeBuildInputs = [ desktop-file-utils pkgconfig ];
     buildInputs = [ libpng SDL freetype zlib ];
   
     makeFlags = [
  
positive.code: { stdenv, fetchFromGitHub, libpng, pkgconfig, SDL, freetype, zlib }:
  
  stdenv.mkDerivation rec {
  
  
negative.code:     "prefix=/"
    ];
  
    postInstall = ''
      mkdir -p $out/share/icons/
      mv $out/share/caprice32/resources/freedesktop/caprice32.png $out/share/icons/
      mv $out/share/caprice32/resources/freedesktop/emulators.png $out/share/icons/
  
      desktop-file-install --dir $out/share/applications \
        $out/share/caprice32/resources/freedesktop/caprice32.desktop
  
      desktop-file-install --dir $out/share/desktop-directories \
        $out/share/caprice32/resources/freedesktop/Emulators.directory
  
      install -Dm644 $out/share/caprice32/resources/freedesktop/caprice32.menu -t $out/etc/xdg/menus/applications-merged/
    '';
  
    meta = with stdenv.lib; {
      description = "A complete emulation of CPC464, CPC664 and CPC6128";
      homepage = "https://github.com/ColinPitrat/caprice32";
  