2023-08-10 07:59:29 +00:00
|
|
|
{ lib
|
2024-01-25 14:12:00 +00:00
|
|
|
, buildGoModule
|
2023-08-10 07:59:29 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, testers
|
|
|
|
, risor
|
|
|
|
}:
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
buildGoModule rec {
|
2023-08-10 07:59:29 +00:00
|
|
|
pname = "risor";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.6.0";
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "risor-io";
|
|
|
|
repo = "risor";
|
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-IUmkb23Fx+bjzXrXWfKPOo0HFt7HjtjQoCRtH77HGBg=";
|
2023-08-10 07:59:29 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
proxyVendor = true;
|
2024-05-15 15:35:15 +00:00
|
|
|
vendorHash = "sha256-+XYwFYbvZvk0TWoRtCKQIzbQeznQkolB+NFqUiZMkpA=";
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
subPackages = [
|
2023-10-09 19:29:22 +00:00
|
|
|
"cmd/risor"
|
2023-08-10 07:59:29 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "risor";
|
2023-08-10 07:59:29 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|
2023-10-09 19:29:22 +00:00
|
|
|
|