Add lumen package and autoloaded overlay
1 file changed, 28 insertions(+), 0 deletions(-)
changed files
A user/packages/lumen/default.nix
@@ -0,0 +1,28 @@ +{ 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"; + }; + + goDeps = ./deps.nix; + + 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; + }; +}