-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.nix
More file actions
46 lines (39 loc) · 923 Bytes
/
package.nix
File metadata and controls
46 lines (39 loc) · 923 Bytes
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
41
42
43
44
45
46
{
rustPlatform,
lib,
fetchFromGitHub,
fetchurl,
pkgs,
}:
rustPlatform.buildRustPackage rec {
pname = "near-cli-rs";
version = "0.23.6";
src = fetchFromGitHub {
owner = "near";
repo = "near-cli-rs";
tag = "v${version}";
hash = "sha256-o3sz/6u9XghqCro9HMAckVfCoOM30oYOeXlaU2PtEqI=";
};
cargoLock = {
lockFile = "${src}/Cargo.lock";
};
NEAR_RELEASE_BUILD = "release";
OPENSSL_NO_VENDOR = 1; # we want to link to OpenSSL provided by Nix
doCheck = false; # needs network
buildInputs = with pkgs; [
openssl
systemd
];
nativeBuildInputs = [
pkgs.pkg-config
];
meta = with lib; {
description = "near CLI is your human-friendly companion that helps to interact with NEAR Protocol from command line.";
homepage = "https://github.com/near/near-cli-rs";
license = [
licenses.asl20
licenses.mit
];
mainProgram = "near";
};
}