60f07311b9
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
38 lines
817 B
Nix
38 lines
817 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "cel-go";
|
|
version = "0.19.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "cel-go";
|
|
rev = "v${version}";
|
|
hash = "sha256-r3xBg+8C3VZ3sHYKMyQoBVGe+puWdRO4q3e9bur9ZoY=";
|
|
};
|
|
|
|
modRoot = "repl";
|
|
|
|
vendorHash = "sha256-7WBom6FS/GX+pM3zv59BZOwmAIokKkZcN3yGbcQb09Q=";
|
|
|
|
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 ];
|
|
};
|
|
}
|