11 rocksdb = rocksdb_7_10;
13 rustPlatform.buildRustPackage rec {
17 src = fetchFromGitHub {
21 hash = "sha256-L26jzAn8vwnw9kFd6ciyYS/OLEFTbN8doNKy3P8qKRE=";
24 cargoHash = "sha256-/0XS4xF5gzEBWXS39f0FsIK1dFwmGT4McaExR/srB5Y=";
26 # needed for librocksdb-sys
27 nativeBuildInputs = [ rustPlatform.bindgenHook ];
29 # link rocksdb dynamically
30 ROCKSDB_INCLUDE_DIR = "${rocksdb}/include";
31 ROCKSDB_LIB_DIR = "${rocksdb}/lib";
33 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
35 passthru.updateScript = ./update.sh;
38 description = "Efficient re-implementation of Electrum Server in Rust";
39 homepage = "https://github.com/romanz/electrs";
40 license = licenses.mit;
41 maintainers = with maintainers; [ prusnak ];
42 mainProgram = "electrs";