16 rocksdb = rocksdb_7_10;
23 src = fetchFromGitHub {
27 hash = "sha256-98tp3QYaHfhVIiJ4xkA3bUanXwK1q05t+YNroFtBUxE=";
32 vendorHash = "sha256-n03eWWy+58KAbYnKxI3/ulWIpmR+ivtImQSqbe2kpYU=";
34 nativeBuildInputs = [ pkg-config ];
36 buildInputs = [ bzip2 lz4 rocksdb snappy zeromq zlib ];
39 "-X github.com/trezor/blockbook/common.version=${version}"
40 "-X github.com/trezor/blockbook/common.gitcommit=${commit}"
41 "-X github.com/trezor/blockbook/common.buildDate=unknown"
44 tags = [ "rocksdb_7_10" ];
47 "-L${stdenv.cc.cc.lib}/lib"
57 preBuild = lib.optionalString stdenv.hostPlatform.isDarwin ''
61 subPackages = [ "." ];
65 cp -r $src/static/templates/ $out/share/
66 cp -r $src/static/css/ $out/share/
70 smoke-test = nixosTests.blockbook-frontend;
74 description = "Trezor address/account balance backend";
75 homepage = "https://github.com/trezor/blockbook";
76 license = licenses.agpl3Only;
77 maintainers = with maintainers; [ mmahut _1000101 ];
78 platforms = platforms.unix;
79 mainProgram = "blockbook";