nixos-config/pkgs/mapshot/default.nix

34 lines
710 B
Nix
Raw Permalink Normal View History

2024-10-21 23:27:03 +02:00
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "mapshot";
version = "0.0.22";
src = fetchFromGitHub {
owner = "Palats";
repo = "mapshot";
rev = version;
hash = "sha256-cgNQU9T4xgJbUHI57XjP+UoCLfV+JCm0tvj8xLuI4Qs=";
};
vendorHash = "sha256-3bjEoE4angdBs2bVNINZrkeBl68NsWVRjlKTevLrroM=";
ldflags = [
"-s"
"-w"
];
meta = {
description = "Factorio mod to export maps as zoomable html";
homepage = "https://github.com/Palats/mapshot";
changelog = "https://github.com/Palats/mapshot/blob/${src.rev}/changelog.txt";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ ];
mainProgram = "mapshot";
};
}