16 stdenv.mkDerivation rec {
20 outputs = [ "out" "dev" ];
22 src = fetchFromGitLab {
25 rev = "refs/tags/${version}";
26 hash = "sha256-llUpW8VRBD8RKaGfyedzsMbLRb8DIo0ePt6m2T2w7Po=";
30 # Fix compilation with Clang.
31 # https://gitlab.com/inkscape/lib2geom/-/merge_requests/102
33 url = "https://gitlab.com/inkscape/lib2geom/-/commit/a5b5ac7d992023f8a80535ede60421e73ecd8e20.patch";
34 hash = "sha256-WJYkk3WRYVyPSvyTbKDUrYvUwFgKA9mmTiEWtYQqM4Q=";
37 url = "https://gitlab.com/inkscape/lib2geom/-/commit/23d9393af4bee17aeb66a3c13bdad5dbed982d08.patch";
38 hash = "sha256-LAaGMIXpDI/Wzv5E2LasW1Y2/G4ukhuEzDmFu3AzZOA=";
61 "-D2GEOM_BUILD_SHARED=ON"
66 # TODO: Update cmake hook to make it simpler to selectively disable cmake tests: #113829
69 lib.optionals stdenv.isAarch64 [
70 # Broken on all platforms, test just accidentally passes on some.
71 # https://gitlab.com/inkscape/lib2geom/-/issues/63
76 ctest --output-on-failure -E '^${lib.concatStringsSep "|" disabledTests}$'
81 description = "Easy to use 2D geometry library in C++";
82 homepage = "https://gitlab.com/inkscape/lib2geom";
83 license = [ licenses.lgpl21Only licenses.mpl11 ];
84 maintainers = with maintainers; [ jtojnar ];
85 platforms = platforms.unix;