Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchFromGitHub, buildGoModule }:
2buildGoModule rec {
3 pname = "starlark";
4 version = "unstable-2023-03-02";
5
6 src = fetchFromGitHub {
7 owner = "google";
8 repo = "starlark-go";
9 rev = "4b1e35fe22541876eb7aa2d666416d865d905028";
10 hash = "sha256-TqR8V9cypTXaXlKrAUpP2qE5gJ9ZanaRRs/LmVt/XEo=";
11 };
12
13 vendorHash = "sha256-mMxRw2VucXwKGQ7f7HM0GiQUExxN38qYZDdmEyxtXDA=";
14
15 ldflags = [ "-s" "-w" ];
16
17 meta = with lib; {
18 homepage = "https://github.com/google/starlark-go";
19 description = "An interpreter for Starlark, implemented in Go";
20 license = licenses.bsd3;
21 maintainers = with maintainers; [ aaronjheng ];
22 };
23}