summary refs log tree commit diff stats
path: root/user/packages/lumen/default.nix
blob: a0da250a7f730965994b5ec4eab562ba41e8ea3a (plain)
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
{ stdenv, lib, go, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  pname = "lumen";
  version = "0.4.1";

  goPackagePath = "github.com/0xfe/lumen";

  src = fetchFromGitHub {
    owner = "0xfe";
    repo = "lumen";
    rev = "v${version}";
    sha256 = "1wr8h46cvyjjlkkhqyk175ji6xanrbznnbpl49qi2svpasvww3qs";
  };

  postBuild = ''
    mv go/bin/main go/bin/lumen
  '';

  meta = with stdenv.lib; {
    homepage = https://github.com/0xfe/lumen;
    description = "A commandline client for the Stellar blockchain";
    platforms = with platforms; linux ++ darwin;
    license = licenses.mit;
  };
}