forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7060,6 +7060,12 @@ | |
githubId = 1204734; | ||
name = "Emil Karlson"; | ||
}; | ||
jkitman = { | ||
email = "[email protected]"; | ||
github = "jkitman"; | ||
githubId = 104733614; | ||
name = "Josh Kitman"; | ||
}; | ||
jlamur = { | ||
email = "[email protected]"; | ||
github = "jlamur"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ lib | ||
, stdenv | ||
, rustPlatform | ||
, fetchFromGitHub | ||
, llvmPackages | ||
, rocksdb_6_23 | ||
, Security | ||
}: | ||
|
||
let | ||
rocksdb = rocksdb_6_23; | ||
in | ||
rustPlatform.buildRustPackage rec { | ||
pname = "esplora"; | ||
# last tagged versoin is far behind master | ||
version = "20230218"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "Blockstream"; | ||
repo = "electrs"; | ||
rev = "adedee15f1fe460398a7045b292604df2161adc0"; | ||
hash = "sha256-KnN5C7wFtDF10yxf+1dqIMUb8Q+UuCz4CMQrUFAChuA="; | ||
}; | ||
|
||
cargoHash = "sha256-tM5IFiIYX2SlAp6Q5uccVjW6TgOf5MfoFrLXz3GlZ90="; | ||
|
||
# needed for librocksdb-sys | ||
nativeBuildInputs = [ rustPlatform.bindgenHook ]; | ||
|
||
# link rocksdb dynamically | ||
ROCKSDB_INCLUDE_DIR = "${rocksdb}/include"; | ||
ROCKSDB_LIB_DIR = "${rocksdb}/lib"; | ||
|
||
buildInputs = lib.optionals stdenv.isDarwin [ Security ]; | ||
|
||
# rename to avoid a name conflict with other electrs package | ||
postInstall = '' | ||
mv $out/bin/electrs $out/bin/esplora | ||
''; | ||
|
||
meta = with lib; { | ||
description = "Blockstream's re-implementation of Electrum Server for Esplora"; | ||
homepage = "https://github.com/Blockstream/electrs"; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ jkitman ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters