Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 45 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546{ lib, stdenv, callPackage, fetchFromGitHub, testers,
cmake,}:
stdenv.mkDerivation (finalAttrs: { pname = "geos"; version = "3.13.1";
src = fetchFromGitHub { owner = "libgeos"; repo = "geos"; tag = finalAttrs.version; hash = "sha256-zPVP01AMIBKMnKi6Sq++CIaVZb5JA1v8/QAdGzKdL8Y="; };
nativeBuildInputs = [ cmake ];
# https://github.com/libgeos/geos/issues/930 cmakeFlags = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ "-DCMAKE_CTEST_ARGUMENTS=--exclude-regex;unit-geom-Envelope" ];
doCheck = true;
passthru.tests = { pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; geos = callPackage ./tests.nix { geos = finalAttrs.finalPackage; }; };
meta = with lib; { description = "C/C++ library for computational geometry with a focus on algorithms used in geographic information systems (GIS) software"; homepage = "https://libgeos.org"; license = licenses.lgpl21Only; mainProgram = "geosop"; teams = [ teams.geospatial ]; pkgConfigModules = [ "geos" ]; changelog = "https://github.com/libgeos/geos/releases/tag/${finalAttrs.finalPackage.version}"; };})