mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 12:23:02 +00:00
parent
981171662b
commit
44759783f5
45
pkgs/development/interpreters/yaegi/default.nix
Normal file
45
pkgs/development/interpreters/yaegi/default.nix
Normal file
@ -0,0 +1,45 @@
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, testers
|
||||
, yaegi
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "yaegi";
|
||||
version = "0.15.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "traefik";
|
||||
repo = "yaegi";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-ZV1HidHJvwum18QIIwQiCcRcitZdHk5+FxkPs6YgDac=";
|
||||
};
|
||||
|
||||
vendorHash = null;
|
||||
|
||||
subPackages = [
|
||||
"cmd/yaegi"
|
||||
];
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X=main.version=${version}"
|
||||
];
|
||||
|
||||
passthru.tests = {
|
||||
version = testers.testVersion {
|
||||
package = yaegi;
|
||||
command = "yaegi version";
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Go interpreter";
|
||||
homepage = "https://github.com/traefik/yaegi";
|
||||
changelog = "https://github.com/traefik/yaegi/releases/tag/${src.rev}";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ figsoda ];
|
||||
};
|
||||
}
|
@ -18078,6 +18078,8 @@ with pkgs;
|
||||
|
||||
wasm3 = callPackage ../development/interpreters/wasm3 { };
|
||||
|
||||
yaegi = callPackage ../development/interpreters/yaegi { };
|
||||
|
||||
yex-lang = callPackage ../development/interpreters/yex-lang { };
|
||||
|
||||
### DEVELOPMENT / MISC
|
||||
|
Loading…
Reference in New Issue
Block a user