about summary refs log tree commit diff
path: root/pkgs/by-name/st/starlark/package.nix
blob: 214c97edf5bf1c3793556a5078ce4fd2304602a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
  pname = "starlark";
  version = "0-unstable-2024-05-21";

  src = fetchFromGitHub {
    owner = "google";
    repo = "starlark-go";
    rev = "046347dcd1044f5e568fcf64884b0344f27910c0";
    hash = "sha256-qpJPCcMxrsspiN5FeQDZRaNchYPawMNJHtKK8fmrRug=";
  };

  vendorHash = "sha256-8drlCBy+KROyqXzm/c+HBe/bMVOyvwRoLHxOApJhMfo=";

  ldflags = [ "-s" "-w" ];

  meta = with lib; {
    homepage = "https://github.com/google/starlark-go";
    description = "Interpreter for Starlark, implemented in Go";
    license = licenses.bsd3;
    maintainers = with maintainers; [ aaronjheng ];
    mainProgram = "starlark";
  };
}