2022-07-14 12:49:19 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, buildGoModule, fetchpatch }:
|
2022-04-03 18:54:34 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "starlark";
|
2022-09-14 18:05:37 +00:00
|
|
|
version = "unstable-2022-08-17";
|
2022-04-03 18:54:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "starlark-go";
|
2022-09-14 18:05:37 +00:00
|
|
|
rev = "f738f5508c12fe5a9fae44bbdf07a94ddcf5030e";
|
|
|
|
sha256 = "sha256-nkQxwdP/lXEq5iiGy17mUTSMG6XiKAUJYfMDgbr10yM=";
|
2022-04-03 18:54:34 +00:00
|
|
|
};
|
|
|
|
|
2022-09-14 18:05:37 +00:00
|
|
|
vendorSha256 = "sha256-Kcjtaef//7LmUAIViyKv3gTK7kjynwJ6DwgGJ+pdbfM=";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/google/starlark-go";
|
|
|
|
description = "An interpreter for Starlark, implemented in Go";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ aaronjheng ];
|
|
|
|
};
|
|
|
|
}
|