nixpkgs/pkgs/development/interpreters/risor/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
962 B
Nix
Raw Normal View History

{ lib
2024-01-14 00:23:41 +00:00
, buildGoModule
, fetchFromGitHub
, testers
, risor
}:
2024-01-14 00:23:41 +00:00
buildGoModule rec {
pname = "risor";
2024-04-30 04:19:00 +00:00
version = "1.6.0";
src = fetchFromGitHub {
owner = "risor-io";
repo = "risor";
rev = "v${version}";
2024-04-30 04:19:00 +00:00
hash = "sha256-IUmkb23Fx+bjzXrXWfKPOo0HFt7HjtjQoCRtH77HGBg=";
};
proxyVendor = true;
2024-04-30 04:19:00 +00:00
vendorHash = "sha256-+XYwFYbvZvk0TWoRtCKQIzbQeznQkolB+NFqUiZMkpA=";
subPackages = [
"cmd/risor"
];
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";
mainProgram = "risor";
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 ];
};
}