base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / ce / cel-go / package.nix
blob3da3e1be2d621d79765a4123aff112c77bb39084
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "cel-go";
8   version = "0.21.0";
10   src = fetchFromGitHub {
11     owner = "google";
12     repo = "cel-go";
13     rev = "v${version}";
14     hash = "sha256-t451e3Pkkt4pmBvS0DBSHOVg7P8ipJd28XyiQ6P/QIQ=";
15   };
17   modRoot = "repl";
19   vendorHash = "sha256-t/GEbpnqpLQ79ETqS9TAgy+2z9FoifAmkHbfKUxDBZA=";
21   subPackages = [
22     "main"
23   ];
25   ldflags = [ "-s" "-w" ];
27   postInstall = ''
28     mv $out/bin/{main,cel-go}
29   '';
31   meta = with lib; {
32     description = "Fast, portable, non-Turing complete expression evaluation with gradual typing";
33     mainProgram = "cel-go";
34     homepage = "https://github.com/google/cel-go";
35     changelog = "https://github.com/google/cel-go/releases/tag/${src.rev}";
36     license = licenses.asl20;
37     maintainers = with maintainers; [ figsoda ];
38   };