587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
48 lines
962 B
Nix
48 lines
962 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, testers
|
|
, risor
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "risor";
|
|
version = "1.5.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "risor-io";
|
|
repo = "risor";
|
|
rev = "v${version}";
|
|
hash = "sha256-tvEiboH5cGRpyBmmpu8A1UlDR1Y9XPe1pUNS0/Jvooc=";
|
|
};
|
|
|
|
proxyVendor = true;
|
|
vendorHash = "sha256-eW6eSZp5Msg/u50i1+S2KSzDws0Rq8JBY1Yxzq7/hVo=";
|
|
|
|
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 ];
|
|
};
|
|
}
|
|
|