silx: 2.1.1 -> 2.1.2 (#361612)
[NixPkgs.git] / pkgs / by-name / ri / risor / package.nix
blobcbac6e69e03b8a0ae9fbcedf8b43558d7f04778b
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 , testers
5 , risor
6 }:
8 buildGoModule rec {
9   pname = "risor";
10   version = "1.7.0";
12   src = fetchFromGitHub {
13     owner = "risor-io";
14     repo = "risor";
15     rev = "v${version}";
16     hash = "sha256-QtYqepNH+c0WDGKTLtMz/VUz0oDOgCbwe4D9I4wal5s=";
17   };
19   proxyVendor = true;
20   vendorHash = "sha256-JrBuHA+u5bI2kcbWaY6/894kh5Xdix0ov6nN5r9rJRE=";
22   subPackages = [
23     "cmd/risor"
24   ];
26   ldflags = [
27     "-s"
28     "-w"
29     "-X=main.version=${version}"
30   ];
32   passthru.tests = {
33     version = testers.testVersion {
34       package = risor;
35       command = "risor version";
36     };
37   };
39   meta = with lib; {
40     description = "Fast and flexible scripting for Go developers and DevOps";
41     mainProgram = "risor";
42     homepage = "https://github.com/risor-io/risor";
43     changelog = "https://github.com/risor-io/risor/releases/tag/${src.rev}";
44     license = licenses.asl20;
45     maintainers = with maintainers; [ figsoda ];
46   };