8b8a2fd542
* First attempt at making elvish compile on darwin * Fixed cyclic dependency on darwin This fixes the "cycle detected in the references of" error when building on darwin. The fix is based on the solution in issue #18131. * Use version 0.10 and not 0.10.1, which is not officially released yet
27 lines
729 B
Nix
27 lines
729 B
Nix
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
name = "elvish-${version}";
|
|
version = "0.10";
|
|
|
|
postInstall = stdenv.lib.optionalString (stdenv.isDarwin) ''
|
|
install_name_tool -delete_rpath $out/lib $bin/bin/elvish
|
|
'';
|
|
|
|
goPackagePath = "github.com/elves/elvish";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "elvish";
|
|
owner = "elves";
|
|
rev = version;
|
|
sha256 = "0v6byd81nz0fbd3sdlippi1jn1z3gbqc2shnr7akd1n6k9259vrj";
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A friendly and expressive Unix shell";
|
|
homepage = https://github.com/elves/elvish;
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ vrthra ];
|
|
platforms = with platforms; linux ++ darwin;
|
|
};
|
|
}
|