forked from vinteumorg/Floresta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.nix
40 lines (31 loc) · 883 Bytes
/
build.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib, rustPlatform, rust, buildInputs, nativeBuildInputs, ... }:
let
pname = "florestad";
version = "0.5.1";
buildRustPackage = rustPlatform.buildRustPackage.override {
rustc = rust;
cargo = rust;
};
in
buildRustPackage {
inherit pname version;
doCheck = false;
src = ./.;
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"bitcoin-0.31.0" = "sha256-2v87cb+Wd4OhgDG45Za3bxumaY7QKdw7nKuqKrmtHMs=";
};
};
inherit buildInputs nativeBuildInputs;
# Override the Rust compiler used
rustc = "${rust}/bin/rustc";
cargo = "${rust}/bin/cargo";
meta = with lib; {
description = "A full bitcoin node with Utreexo";
homepage = "https://github.com/Davidson-Souza/Floresta";
license = licenses.mit;
maintainers = [ maintainers.Davidson maintainers.afm maintainers.jaoleal ];
platforms = platforms.all;
};
}