Skip to content

pkgs(pmtiles): init at 0-unstable-2025-12-29#1940

Open
Aman16102000 wants to merge 2 commits intongi-nix:mainfrom
Aman16102000:package-added-issue-1844-pmtiles.io
Open

pkgs(pmtiles): init at 0-unstable-2025-12-29#1940
Aman16102000 wants to merge 2 commits intongi-nix:mainfrom
Aman16102000:package-added-issue-1844-pmtiles.io

Conversation

@Aman16102000
Copy link

@Aman16102000 Aman16102000 commented Jan 6, 2026

Fixes #1844
The package:

  • Uses buildNpmPackage to build the web application from the protomaps/PMTiles repository
  • Extracts and builds only the /app directory from the repository
  • Installs static assets to share/pmtiles-app for serving
  • Follows the by-name package structure convention
  • Includes nix-update-script for automated updates from the main branch
  • Provides proper metadata (BSD-3 license, homepage)

Test Plan

  • Build the package: nix build .#pmtiles-app
  • Serve the web app locally: python3 -m http.server 8000 --directory result/share/pmtiles-app
  • Verify the web viewer loads correctly at http://localhost:8000

Copy link
Contributor

@eljamm eljamm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution. In the future, if you see someone assigned to an issue, please ask them if they're currently working on it or if they need help before you tackle it, else we can end up duplicating efforts.

src = fetchFromGitHub {
owner = "protomaps";
repo = "PMTiles";
rev = "754e15bf58fa3cd1491bbfd16d48d72a72602596"; # main branch as of 2025-01-06
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment is redundant. This is already clear from the version.

Suggested change
rev = "754e15bf58fa3cd1491bbfd16d48d72a72602596"; # main branch as of 2025-01-06
rev = "754e15bf58fa3cd1491bbfd16d48d72a72602596";

description = "Web viewer for PMTiles";
homepage = "https://protomaps.com/docs/pmtiles";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ ];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
maintainers = with lib.maintainers; [ ];
teams = with lib.teams; [ ngi ];

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add geospatial team as well.


meta = {
description = "Web viewer for PMTiles";
homepage = "https://protomaps.com/docs/pmtiles";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
homepage = "https://protomaps.com/docs/pmtiles";
homepage = "https://docs.protomaps.com/pmtiles";
downloadPage = "https://github.com/protomaps/PMTiles";

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please squash your commits and format the commit and PR titles in the following style: pkgs(pmtiles): init at 0-unstable-2025-12-29


buildNpmPackage (finalAttrs: {
pname = "pmtiles-app";
version = "0-unstable-2025-01-06";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The commit date is 2025-12-29

Suggested change
version = "0-unstable-2025-01-06";
version = "0-unstable-2025-12-29";

}:

buildNpmPackage (finalAttrs: {
pname = "pmtiles-app";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pname = "pmtiles-app";
pname = "pmtiles";

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upstream name is pmtiles-app. I would go with pmtiles-app.

@eljamm eljamm requested a review from imincik January 8, 2026 08:08
@eljamm
Copy link
Contributor

eljamm commented Jan 8, 2026

Actually, it's probably better to call this pmtiles-viewer to avoid conflict with go-pmtiles. It's also more accurate since that's what this package seems to be doing:

image

@imincik imincik self-assigned this Jan 12, 2026
@imincik imincik moved this to In review in Nix@NGI Jan 12, 2026
@imincik
Copy link
Contributor

imincik commented Jan 12, 2026

@Aman16102000 , great thanks for you contribution. I am also Nixpkgs Geospatial team member and I am very happy to merge your contribution to nixpkgs . Or @eljamm @Aman16102000 , what about migrating this PR to nixpkgs straight away ?

@imincik imincik changed the title Package added issue 1844 pmtiles.io pkgs(pmtiles): init at 0-unstable-2025-12-29 Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

Package pmtiles.io for NGIpkgs/Nixpkgs

3 participants

Comments