anchor.diff:    installPhase = ''
       mkdir -p $out
       dpkg -x $src $out
  -    cp -av $out/usr/* $out
  +    mv $out/usr/bin $out
  +    mv $out/usr/share $out
       rm $out/bin/typora
  +    rmdir $out/usr
   
       # Otherwise it looks "suspicious"
       chmod -R g-w $out
  
positive.code: 
  stdenv.mkDerivation rec {
    name = "typora-${version}";
    version = "0.9.31";
  
    src =
      if stdenv.system == "x86_64-linux" then
        fetchurl {
          url = "https://www.typora.io/linux/typora_${version}_amd64.deb";
          sha256 = "786b5164d9c63ecc23eb427c5ff393285ce8fd540c5bfdd5c1464655fac87a42";
        }
      else
        fetchurl {
          url = "https://www.typora.io/linux/typora_${version}_i386.deb";
          sha256 = "a8fe53f8984d9f8c4e06c14affbb616be58a91cd2b475b9681fb18a6e21930d1";
        }
      ;
  
  
negative.code:   meta = with stdenv.lib; {
      description = "A minimal Markdown reading & writing app";
      homepage = https://typora.io;
      license = licenses.unfree;
      maintainers = with maintainers; [ jensbin ];
      platforms = [ "x86_64-linux" "i686-linux" ];
    };
  }
  