mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-16 12:20:10 +00:00
46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
versionCheckHook,
|
|
}:
|
|
buildGoModule (finalAttrs: {
|
|
pname = "terminal-space-program";
|
|
version = "0.38.0";
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jasonfen";
|
|
repo = "terminal-space-program";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-pOJZ0qvR97gBz85lKAOpPvnYBWiX8mETtSLFi/OYU9o=";
|
|
};
|
|
|
|
vendorHash = "sha256-5bhIP7It6rqOFvXRBUIP6/nGz4X+dzm3/BjVeo3nw4I=";
|
|
|
|
ldflags = [
|
|
"-X github.com/jasonfen/terminal-space-program/internal/version.Version=${finalAttrs.version}"
|
|
];
|
|
|
|
env.CGO_ENABLED = 0;
|
|
|
|
__darwinAllowLocalNetworking = true; # the server/multiplayer tests need local networking
|
|
|
|
doInstallCheck = true;
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Terminal-native orbital-mechanics rocket simulator";
|
|
homepage = "https://terminalspaceprogram.com";
|
|
changelog = "https://github.com/jasonfen/terminal-space-program/blob/main/docs/version-history.md";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [ tomasrivera ];
|
|
mainProgram = "terminal-space-program";
|
|
};
|
|
})
|