anchor.diff:  
       install -d $out/bin/ $out/share/${pname}/
   
  -    cp uxnasm uxncli uxnemu $out/bin/
  -    cp -r projects $out/share/${pname}/
  +    cp bin/uxnasm bin/uxncli bin/uxnemu $out/bin/
  +    cp -r projects $out/share/uxn/
   
       runHook postInstall
     '';
  
positive.code: 
    dontConfigure = true;
  
    # It is easier to emulate build.sh script
    buildPhase = ''
      runHook preBuild
  
      cc -std=c89 -Wall -Wno-unknown-pragmas src/uxnasm.c -o uxnasm
      cc -std=c89 -Wall -Wno-unknown-pragmas src/uxn.c src/uxncli.c -o uxncli
      cc -std=c89 -Wall -Wno-unknown-pragmas src/uxn.c src/devices/ppu.c \
         src/devices/apu.c src/uxnemu.c $(sdl2-config --cflags --libs) -o uxnemu
  
      runHook postBuild
    '';
  
negative.code: , SDL2
  }:
  
  stdenv.mkDerivation {
    pname = "uxn";
    version = "unstable-2022-10-22";
  
    src = fetchFromSourcehut {
      owner = "~rabbits";
      repo = "uxn";
      rev = "1b2049e238df96f32335edf1c6db35bd09f8b42d";
      hash = "sha256-lwms+qUelfpTC+i2m5b3dW7ww9298YMPFdPVsFrwcDQ=";
    };
  
    buildInputs = [
  