configuration/packages/little-a-map.nix

40 lines
1.1 KiB
Nix
Raw Normal View History

2024-04-30 05:11:20 +00:00
{ fetchFromGitea
2024-05-13 22:35:52 +00:00
, gitUpdater
2024-04-30 05:11:20 +00:00
, lib
, rustPlatform
# Dependencies
, cmake
}:
rustPlatform.buildRustPackage rec {
pname = "little-a-map";
2024-05-13 22:37:19 +00:00
version = "0.12.3";
2024-04-30 05:11:20 +00:00
src = fetchFromGitea {
domain = "codeberg.org";
owner = "AndrewKvalheim";
repo = "little-a-map";
rev = "v${version}";
2024-05-13 22:37:19 +00:00
hash = "sha256-2BJDOluZarGnBPCt9wADH2DuDkP9nyt7RygnyphZRPw=";
2024-04-30 05:11:20 +00:00
};
2024-05-13 22:37:19 +00:00
cargoHash = "sha256-eU+0k1zwj/AUIfSLeFNWHrcvmDqsK1TCxqqGUnYSbGY=";
2024-04-30 05:11:20 +00:00
nativeBuildInputs = [ cmake ];
preCheck = ''
export TEST_OUTPUT_PATH="$TMPDIR"
'';
2024-05-13 22:35:52 +00:00
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
2024-04-30 05:11:20 +00:00
meta = {
description = "Players can have little a mapif they've surveyed the area in-game. This tool renders a composite of player-created map items with the goal of minimizing external effects on survival gameplay.";
homepage = "https://codeberg.org/AndrewKvalheim/little-a-map";
license = lib.licenses.gpl3;
mainProgram = pname;
broken = lib.versionOlder rustPlatform.rust.rustc.version (lib.importTOML (src + "/Cargo.toml")).package.rust-version;
2024-04-30 05:11:20 +00:00
};
}