mapshot: init 0.0.22

This commit is contained in:
Erwin Boskma 2024-10-21 23:27:03 +02:00
parent f40363797f
commit 2c957085dd
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk
3 changed files with 36 additions and 0 deletions

View file

@ -261,6 +261,7 @@
dnspyre = pkgs.callPackage ./pkgs/dnspyre { }; dnspyre = pkgs.callPackage ./pkgs/dnspyre { };
git-repo-go = pkgs.git-repo-go; git-repo-go = pkgs.git-repo-go;
hassbridge = pkgs.callPackage ./pkgs/hassbridge { }; hassbridge = pkgs.callPackage ./pkgs/hassbridge { };
mapshot = pkgs.mapshot;
peakperf = pkgs.callPackage ./pkgs/peakperf { }; peakperf = pkgs.callPackage ./pkgs/peakperf { };
tinyows = pkgs.callPackage ./pkgs/tinyows { }; tinyows = pkgs.callPackage ./pkgs/tinyows { };
tsui = pkgs.callPackage ./pkgs/tsui { }; tsui = pkgs.callPackage ./pkgs/tsui { };

View file

@ -23,6 +23,8 @@ final: prev: {
peakperf = prev.pkgs.callPackage ../pkgs/peakperf { peakperf = prev.pkgs.callPackage ../pkgs/peakperf {
enableCuda = false; # peakperf needs cuda-samples, which is not available in current CUDA. CUDA 11 is broken due to CVEs in freeimage enableCuda = false; # peakperf needs cuda-samples, which is not available in current CUDA. CUDA 11 is broken due to CVEs in freeimage
}; };
mapshot = prev.pkgs.callPackage ../pkgs/mapshot { };
factorio = prev.factorio.override { versionsJson = ./factorio.json; }; factorio = prev.factorio.override { versionsJson = ./factorio.json; };
python312 = prev.python312.override { python312 = prev.python312.override {

33
pkgs/mapshot/default.nix Normal file
View file

@ -0,0 +1,33 @@
{
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";
};
}