From a3f25464ead8f73ffd4b142df018a816db9cb144 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Wed, 8 Feb 2023 13:39:58 -0700 Subject: [PATCH] pkgs: add yeagi --- flake.nix | 1 + pkgs/yaegi.nix | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/yaegi.nix diff --git a/flake.nix b/flake.nix index 2641ab4..75f03a4 100644 --- a/flake.nix +++ b/flake.nix @@ -248,6 +248,7 @@ inherit pkgs; isUnstable = true; }; + yaegi = pkgs.callPackage ./pkgs/yaegi.nix { inherit pkgs; }; yarr = pkgs.callPackage ./pkgs/yarr.nix { inherit pkgs; isUnstable = true; diff --git a/pkgs/yaegi.nix b/pkgs/yaegi.nix new file mode 100644 index 0000000..895787e --- /dev/null +++ b/pkgs/yaegi.nix @@ -0,0 +1,22 @@ +{ lib, buildGoModule, fetchFromGitHub, ... }: +with lib; +buildGoModule rec { + pname = "yaegi"; + version = "0.15.0"; + + src = fetchFromGitHub { + owner = "traefik"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-++WA6Xdo9YuMQgCL/c485LgKeV4XeodVZBBYCBsmh+M="; + }; + + vendorHash = null; + + meta = { + description = "Yaegi is Another Elegant Go Interpreter"; + homepage = "https://github.com/traefik/yaegi"; + license = licenses.asl20; + maintainers = with maintainers; [ qbit ]; + }; +}