anchor.diff: -{ lib, stdenv
  +{ lib
  +, stdenv
   , buildGoModule
   , fetchFromGitHub
  -, packr
   , pkg-config
   , bzip2
   , lz4
  
positive.code:     license = licenses.agpl3;
      maintainers = with maintainers; [ mmahut _1000101 ];
      platforms = platforms.unix;
      # go dependency tecbot/gorocksdb requires rocksdb 5.x but nixpkgs has only rocksdb 6.x
      # issue in upstream can be tracked here: https://github.com/trezor/blockbook/issues/617
      broken = true;
    };
  }
  
negative.code: 
  buildGoModule rec {
    pname = "blockbook";
    version = "0.3.6";
    commit = "5f8cf45";
  
    src = fetchFromGitHub {
      owner = "trezor";
      repo = "blockbook";
      rev = "v${version}";
      sha256 = "1jb195chy3kbspmv9vyg7llw6kgykkmvz3znd97mxf24f4q622jv";
    };
  
    vendorSha256 = "0d17qaqn33wi7lzw4hlym56d9v4qnmvs6plpm5jiby2g5yckq0mz";
  
    nativeBuildInputs = [ pkg-config ];
  
    buildInputs = [ bzip2 lz4 rocksdb snappy zeromq zlib ];
  
  