2016-06-19 08:12:21 +02:00
|
|
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "elvish-${version}";
|
2017-09-21 13:20:37 +02:00
|
|
|
version = "0.10";
|
|
|
|
|
|
|
|
postInstall = stdenv.lib.optionalString (stdenv.isDarwin) ''
|
|
|
|
install_name_tool -delete_rpath $out/lib $bin/bin/elvish
|
|
|
|
'';
|
2016-06-19 08:12:21 +02:00
|
|
|
|
|
|
|
goPackagePath = "github.com/elves/elvish";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "elvish";
|
|
|
|
owner = "elves";
|
2017-02-12 00:19:22 +01:00
|
|
|
rev = version;
|
2017-09-21 13:20:37 +02:00
|
|
|
sha256 = "0v6byd81nz0fbd3sdlippi1jn1z3gbqc2shnr7akd1n6k9259vrj";
|
2016-06-19 08:12:21 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-07-05 22:37:11 +02:00
|
|
|
description = "A friendly and expressive Unix shell";
|
2016-06-19 08:12:21 +02:00
|
|
|
homepage = https://github.com/elves/elvish;
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ vrthra ];
|
2017-09-21 13:20:37 +02:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2016-06-19 08:12:21 +02:00
|
|
|
};
|
|
|
|
}
|