summaryrefslogtreecommitdiffstats
path: root/pkgs/development/interpreters/cel-go
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-08-11 12:49:29 -0400
committerfigsoda <figsoda@pm.me>2023-08-13 09:23:32 -0400
commit9186d59d268d53202d8c216881e6b69a07fdf7d0 (patch)
treef9b0943429eced34a56fc47a52c1bb26cf584ec2 /pkgs/development/interpreters/cel-go
parent981171662bdf4d67d18c85c0761cae950232a06b (diff)
cel-go: init at 0.17.1
https://github.com/google/cel-go
Diffstat (limited to 'pkgs/development/interpreters/cel-go')
-rw-r--r--pkgs/development/interpreters/cel-go/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/cel-go/default.nix b/pkgs/development/interpreters/cel-go/default.nix
new file mode 100644
index 000000000000..613f332ed623
--- /dev/null
+++ b/pkgs/development/interpreters/cel-go/default.nix
@@ -0,0 +1,38 @@
+{ lib
+, buildGoModule
+, fetchFromGitHub
+}:
+
+buildGoModule rec {
+ pname = "cel-go";
+ version = "0.17.1";
+
+ src = fetchFromGitHub {
+ owner = "google";
+ repo = "cel-go";
+ rev = "v${version}";
+ hash = "sha256-qk7jopOr/woWCi5j509K4bdlIybuZZ+UFTmTHEEw9/Y=";
+ };
+
+ sourceRoot = "${src.name}/repl";
+
+ vendorHash = "sha256-OypSL91/2FVCF3ADNSJH33JxH0+3HxIziwmXHb/vZM4=";
+
+ subPackages = [
+ "main"
+ ];
+
+ ldflags = [ "-s" "-w" ];
+
+ postInstall = ''
+ mv $out/bin/{main,cel-go}
+ '';
+
+ meta = with lib; {
+ description = "Fast, portable, non-Turing complete expression evaluation with gradual typing";
+ homepage = "https://github.com/google/cel-go";
+ changelog = "https://github.com/google/cel-go/releases/tag/${src.rev}";
+ license = licenses.asl20;
+ maintainers = with maintainers; [ figsoda ];
+ };
+}