mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
49 lines
962 B
Nix
49 lines
962 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, testers
|
|
, risor
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "risor";
|
|
version = "1.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "risor-io";
|
|
repo = "risor";
|
|
rev = "v${version}";
|
|
hash = "sha256-IUmkb23Fx+bjzXrXWfKPOo0HFt7HjtjQoCRtH77HGBg=";
|
|
};
|
|
|
|
proxyVendor = true;
|
|
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 ];
|
|
};
|
|
}
|
|
|