eget: init at 1.1.0 (#182166)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
zendo 2022-07-22 22:20:52 +08:00 committed by GitHub
parent c8fc89334d
commit 8b6838735e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,48 @@
{ lib
, fetchFromGitHub
, buildGoModule
, pandoc
, installShellFiles
, nix-update-script
, testers
, eget
}:
buildGoModule rec {
pname = "eget";
version = "1.1.0";
src = fetchFromGitHub {
owner = "zyedidia";
repo = pname;
rev = "v${version}";
sha256 = "sha256-+sl98pOc3YSy7LnEWsoPQwUtmY/pgMKOX73glzu+3MM=";
};
vendorSha256 = "sha256-axJqi41Fj+MJnaLzSOnSws9/c/0dSkUAtaWkVXNmFxI=";
ldflags = [ "-s" "-w" "-X main.Version=v${version}" ];
nativeBuildInputs = [ pandoc installShellFiles ];
postInstall = ''
pandoc man/eget.md -s -t man -o eget.1
installManPage eget.1
'';
passthru = {
updateScript = nix-update-script { attrPath = pname; };
tests.version = testers.testVersion {
package = eget;
command = "eget -v";
version = "v${version}";
};
};
meta = with lib; {
description = "Easily install prebuilt binaries from GitHub";
homepage = "https://github.com/zyedidia/eget";
license = licenses.mit;
maintainers = with maintainers; [ zendo ];
};
}

View File

@ -5811,6 +5811,8 @@ with pkgs;
efivar = callPackage ../tools/system/efivar { };
eget = callPackage ../tools/misc/eget { };
evemu = callPackage ../tools/system/evemu { };
# The latest version used by elasticsearch, logstash, kibana and the the beats from elastic.