14 stdenv.mkDerivation (finalAttrs: {
18 src = fetchFromGitHub {
21 rev = "refs/tags/v${finalAttrs.version}";
22 sha256 = "sha256-VjgGcGgQlKmjUq+JU0JpyhOZ9pqwPcBUFEPGV9XoHc0=";
31 (lib.cmakeFeature "CMAKE_CXX_STANDARD" cxxStandard)
32 # incompatible with our version of gtest
33 (lib.cmakeBool "BUILD_TESTS" false)
40 propagatedBuildInputs = [
41 (abseil-cpp.override { inherit cxxStandard; })
45 changelog = "https://github.com/google/s2geometry/releases/tag/${lib.removePrefix "refs/tags/" finalAttrs.src.rev}";
46 description = "Computational geometry and spatial indexing on the sphere";
47 homepage = "http://s2geometry.io/";
48 license = licenses.asl20;
49 maintainers = [ maintainers.Thra11 ];
50 platforms = platforms.linux;