Unverified Commit fe106deb authored by lassulus's avatar lassulus Committed by GitHub
Browse files

osmtogeojson: drop (#493040)

parents f71d9610 24a0a08d
Loading
Loading
Loading
Loading
+0 −2952

File deleted.

Preview size limit exceeded, changes collapsed.

+0 −56
Original line number Diff line number Diff line
{
  lib,
  buildNpmPackage,
  fetchFromGitHub,
  fetchpatch,
  nodePackages,
}:

buildNpmPackage rec {
  pname = "osmtogeojson";
  version = "3.0.0-beta.5";

  src = fetchFromGitHub {
    owner = "tyrasd";
    repo = "osmtogeojson";
    rev = version;
    hash = "sha256-T6d/KQQGoXHgV0iNhOms8d9zfjYMfnBNwPLShrEkHG4=";
  };

  patches = [
    # Fix critical xmldom security issue
    # Se https://github.com/tyrasd/osmtogeojson/pull/146
    (fetchpatch {
      url = "https://github.com/tyrasd/osmtogeojson/commit/536ce2e9cfc3987b7596216223ce40dfbc9603e9.patch";
      hash = "sha256-+LRithLPalcTROoJXGim7S10rxlnLxfH5mvn0dkFKIo=";
    })
  ];

  postPatch = ''
    cp ${./package-lock.json} ./package-lock.json
    # Fix 3 moderate-severity vulnerabilities
    substituteInPlace package.json --replace-fail '"mocha": "~10.1.0",' '"mocha": "^10.1.0",'
  '';

  npmDepsHash = "sha256-tjdws4+xIEFa67bfAumewaYjGjjGbTJOiXbcTp/285U=";
  dontNpmBuild = true;

  # "browserify: command not found"
  nativeBuildInputs = [ nodePackages.browserify ];
  postBuild = "patchShebangs osmtogeojson";

  doCheck = true;
  checkPhase = ''
    runHook preCheck
    npm run test
    runHook postCheck
  '';

  meta = {
    description = "Converts OSM data to GeoJSON";
    homepage = "https://tyrasd.github.io/osmtogeojson/";
    maintainers = with lib.maintainers; [ thibautmarty ];
    license = lib.licenses.mit;
    mainProgram = "osmtogeojson";
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -1495,6 +1495,7 @@ mapAliases {
  ortp = throw "'ortp' has been moved to 'linphonePackages.ortp'"; # Added 2025-09-20
  OSCAR = throw "'OSCAR' has been renamed to/replaced by 'oscar'"; # Converted to throw 2025-10-27
  osm2xmap = throw "osm2xmap has been removed, as it is unmaintained upstream and depended on old dependencies with broken builds"; # Added 2025-09-16
  osmtogeojson = throw "'osmtogeojson' has been removed as it was unmaintained upstream"; # Added 2026-02-22
  ossec-agent = throw "'ossec-agent' has been removed due to lack of maintenance"; # Added 2025-11-08
  ossec-server = throw "'ossec-server' has been removed due to lack of maintenance"; # Added 2025-11-08
  overrideLibcxx = throw "overrideLibcxx has been removed, as it was no longer used and Darwin now uses libc++ from the latest SDK; see the Nixpkgs 25.11 release notes for details"; # Added 2025-09-15