forked from vinteumorg/Floresta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.nix
39 lines (32 loc) · 1.02 KB
/
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
{ lib, rustPlatform, florestaRust, buildInputs }:
let
# Pname defines the name of the package and will decide the output of this expression
pname = "floresta-node";
version = "0.6.0";
# This sets the rustc and cargo to the ones from the florestaRust.
#
# Defined in Flake.nix directly from the rust-toolchain.
buildRustPackage = rustPlatform.buildRustPackage.override {
rustc = florestaRust;
cargo = florestaRust;
};
in
buildRustPackage {
inherit pname version;
doCheck = false;
src = ./.;
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"bitcoin-0.31.0" = "sha256-2v87cb+Wd4OhgDG45Za3bxumaY7QKdw7nKuqKrmtHMs=";
};
};
inherit buildInputs;
meta = with lib; {
description = "A lightweight bitcoin full node";
homepage = "https://github.com/vinteumorg/Floresta";
license = licenses.mit;
maintainers = [ maintainers.Davidson maintainers.jaoleal ];
platforms = [ "aarch64-linux" "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ];
};
}