diff --git a/pkgs/by-name/re/resetti/package.nix b/pkgs/by-name/re/resetti/package.nix new file mode 100644 index 000000000000..d5de305490da --- /dev/null +++ b/pkgs/by-name/re/resetti/package.nix @@ -0,0 +1,41 @@ +{ + buildGoModule, + fetchFromGitHub, + lib, + versionCheckHook, + nix-update-script, +}: + +buildGoModule (finalAttrs: { + pname = "resetti"; + version = "0.7.0"; + + src = fetchFromGitHub { + owner = "tesselslate"; + repo = "resetti"; + tag = "v${finalAttrs.version}"; + hash = "sha256-H4LkXTjXCuOUB9x24lEc4ofCKkAn1Eac2zMPIAgxkSE="; + }; + + vendorHash = "sha256-lhcCN5r1TSB95Y0pEoKAvftR0DMxtII3g+YOKT8I1qk="; + + ldflags = [ "-s" ]; + + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckKeepEnvironment = [ "XDG_DATA_HOME" ]; + preVersionCheck = "XDG_DATA_HOME=/tmp"; + + doInstallCheck = true; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Utility macros for Minecraft speedrunning"; + homepage = "https://github.com/tesselslate/resetti"; + changelog = "https://github.com/tesselslate/resetti/releases/tag/${finalAttrs.src.tag}"; + platforms = lib.platforms.linux; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ jess ]; + mainProgram = "resetti"; + }; +})