about summary refs log tree commit diff
path: root/pkgs/development/interpreters/starlark
diff options
context:
space:
mode:
authorAaron Jheng <wentworth@outlook.com>2022-02-19 06:57:25 +0000
committerAaron Jheng <wentworth@outlook.com>2022-03-06 02:14:03 +0000
commit16fae8b675c4c8bac5bf4b030917a0cb1ea1d54b (patch)
tree6da9b92123639aac1cc15f14a139add6795ecbec /pkgs/development/interpreters/starlark
parent48749f51bd6bddaca3347dded67ed6292792eb65 (diff)
starlark: init at unstable-2022-02-13
Diffstat (limited to 'pkgs/development/interpreters/starlark')
-rw-r--r--pkgs/development/interpreters/starlark/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/starlark/default.nix b/pkgs/development/interpreters/starlark/default.nix
new file mode 100644
index 0000000000000..aa77ceba33b40
--- /dev/null
+++ b/pkgs/development/interpreters/starlark/default.nix
@@ -0,0 +1,23 @@
+{ lib, fetchFromGitHub, buildGoModule }:
+buildGoModule rec {
+  pname = "starlark";
+  version = "unstable-2022-03-02";
+
+  src = fetchFromGitHub {
+    owner = "google";
+    repo = "starlark-go";
+    rev = "5411bad688d12781515a91cc032645331b4fc302";
+    sha256 = "sha256-JNsGyGlIVMS5w0W4jHVsrPqqNms3Xfpa4n/XcEWqt6I=";
+  };
+
+  vendorSha256 = "sha256-lgL5o3MQfZekZ++BNESwV0LeoTxwEZfziQAe99zm4RY=";
+
+  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 ];
+  };
+}