eget: cleanup

This commit is contained in:
Yiyu Zhou
2025-10-20 21:54:59 -07:00
parent 822f3a88ff
commit 78f91aa72e
+9 -10
View File
@@ -6,17 +6,16 @@
installShellFiles,
nix-update-script,
testers,
eget,
}:
buildGoModule rec {
buildGoModule (finalAttrs: {
pname = "eget";
version = "1.3.4";
src = fetchFromGitHub {
owner = "zyedidia";
repo = "eget";
rev = "v${version}";
tag = "v${finalAttrs.version}";
sha256 = "sha256-jhVUYyp6t5LleVotQQme07IJVdVnIOVFFtKEmzt8e2k=";
};
@@ -25,7 +24,7 @@ buildGoModule rec {
ldflags = [
"-s"
"-w"
"-X main.Version=v${version}"
"-X main.Version=v${finalAttrs.version}"
];
nativeBuildInputs = [
@@ -42,16 +41,16 @@ buildGoModule rec {
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion {
package = eget;
package = finalAttrs.finalPackage;
command = "eget -v";
version = "v${version}";
version = "v${finalAttrs.version}";
};
};
meta = with lib; {
meta = {
description = "Easily install prebuilt binaries from GitHub";
homepage = "https://github.com/zyedidia/eget";
license = licenses.mit;
maintainers = with maintainers; [ zendo ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ zendo ];
};
}
})