forked from dapphub/dapptools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
28 lines (25 loc) · 905 Bytes
/
default.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
{ lib, stdenv, fetchFromGitHub, makeWrapper, glibcLocales
, bc, coreutils, curl, ethabi, ethsign, git, gnused, jshon, nodejs, perl, solc }:
stdenv.mkDerivation rec {
name = "seth-${version}";
version = "0.8.1";
src = ./.;
nativeBuildInputs = [makeWrapper];
buildPhase = "true";
makeFlags = ["prefix=$(out)"];
postInstall = let path = lib.makeBinPath [
bc coreutils curl ethabi ethsign git gnused jshon nodejs perl solc
]; in ''
wrapProgram "$out/bin/seth" --prefix PATH : "${path}" \
${if glibcLocales != null then
"--set LOCALE_ARCHIVE \"${glibcLocales}\"/lib/locale/locale-archive"
else ""}
'';
meta = {
description = "Command-line client for talking to Ethereum nodes";
homepage = https://github.com/dapphub/dapptools/src/seth/;
maintainers = [stdenv.lib.maintainers.dbrock];
license = lib.licenses.gpl3;
inherit version;
};
}