risor: init at 0.10.0

https://github.com/risor-io/risor
This commit is contained in:
figsoda 2023-08-06 16:57:26 -04:00
parent 1c39600cb3
commit d6286a6684
2 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,45 @@
{ lib
, buildGoModule
, fetchFromGitHub
, testers
, risor
}:
buildGoModule rec {
pname = "risor";
version = "0.10.0";
src = fetchFromGitHub {
owner = "risor-io";
repo = "risor";
rev = "v${version}";
hash = "sha256-CnwejQ6e08AaUshfieXbQx05G6ZoF6vDlrtai3qxrxo=";
};
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 ];
};
}

View file

@ -12350,6 +12350,8 @@ with pkgs;
richgo = callPackage ../development/tools/richgo { };
risor = callPackage ../development/interpreters/risor { };
rlci = callPackage ../development/interpreters/rlci { };
rs = callPackage ../tools/text/rs { };