depot/third_party/nixpkgs/pkgs/development/interpreters/risor/default.nix
Default email c7f94ff3ce Project import generated by Copybara.
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
2023-08-22 22:05:09 +02:00

45 lines
911 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, testers
, risor
}:
buildGoModule rec {
pname = "risor";
version = "0.14.0";
src = fetchFromGitHub {
owner = "risor-io";
repo = "risor";
rev = "v${version}";
hash = "sha256-QhXIwFrApSkWY2YYYGlojKsByNA2xpyVTm0SpYWB/Ds=";
};
vendorHash = "sha256-diAbQwnlhMm43ZlLKq3llMl9mO3sIkc80aCI5UDn7F4=";
subPackages = [
"cmd/..."
];
ldflags = [
"-s"
"-w"
"-X=main.version=${version}"
];
passthru.tests = {
version = testers.testVersion {
package = risor;
command = "risor version";
};
};
meta = with lib; {
description = "Fast and flexible scripting for Go developers and DevOps";
homepage = "https://github.com/risor-io/risor";
changelog = "https://github.com/risor-io/risor/releases/tag/${src.rev}";
license = licenses.asl20;
maintainers = with maintainers; [ figsoda ];
};
}