1 { stdenv, lib, fetchFromGitHub, fetchpatch, cmake, pkg-config, openssl, gtest }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "1mx61bnn2f6bd281qlhn667q6yfg1pxzd2js88l5wpkqlfzzhfaz";
15 # Fix build https://github.com/google/s2geometry/issues/165
17 url = "https://github.com/google/s2geometry/commit/a4dddf40647c68cd0104eafc31e9c8fb247a6308.patch";
18 sha256 = "0fp3w4bg7pgf5vv4vacp9g06rbqzhxc2fg6i5appp93q6phiinvi";
22 nativeBuildInputs = [ cmake pkg-config ];
23 buildInputs = [ openssl gtest ];
26 description = "Computational geometry and spatial indexing on the sphere";
27 homepage = "http://s2geometry.io/";
28 license = licenses.asl20;
29 maintainers = [ maintainers.Thra11 ];
30 platforms = platforms.linux;