mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-02 10:14:09 +00:00
parent
1c39600cb3
commit
d6286a6684
45
pkgs/development/interpreters/risor/default.nix
Normal file
45
pkgs/development/interpreters/risor/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user