anchor.diff:  , fetchurl
   , makeWrapper
   , dpkg
  +, glib
  +, gnutar
  +, gtk3-x11
   , luajit
  -, gtk3-x11
  +, sdcv
   , SDL2
  -, glib
   , noto-fonts
   , nerdfonts }:
   let font-droid = nerdfonts.override { fonts = [ "DroidSansMono" ]; };
  
positive.code:   installPhase = ''
      mkdir -p $out
      cp -R usr/* $out/
      cp ${luajit}/bin/luajit $out/lib/koreader/luajit
      find $out -xtype l -delete
      for i in ${noto-fonts}/share/fonts/truetype/noto/*; do
          ln -s "$i" $out/lib/koreader/fonts/noto/
  
negative.code: 
    sourceRoot = ".";
    nativeBuildInputs = [ makeWrapper dpkg ];
    buildInputs = [
      glib
      gnutar
      gtk3-x11
      luajit
      sdcv
      SDL2
    ];
    unpackCmd = "dpkg-deb -x ${src} .";
  
    dontConfigure = true;
  