nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 7c503051a5299d0408479dca44580a44567b76db
parent cac6b3271d36ddc54843c84524593732a5542681
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sun, 26 Jul 2026 17:32:04 +0400

Add geo-utils-cpp

Diffstat:
Apkgs/by-name/ge/geo-utils-cpp/package.nix | 38++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+), 0 deletions(-)

diff --git a/pkgs/by-name/ge/geo-utils-cpp/package.nix b/pkgs/by-name/ge/geo-utils-cpp/package.nix @@ -0,0 +1,38 @@ +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + gtest, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "geo-utils-cpp"; + version = "1.2.2"; + + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "gistrec"; + repo = "geo-utils-cpp"; + tag = "v${finalAttrs.version}"; + hash = "sha256-rB/VYcPNlthClue2W/L8FdV8QN6MM/260XLRILLzrhs="; + }; + + postPatch = '' + substituteInPlace cmake/geo-utils-cpp.pc.in \ + --replace-fail 'includedir=''${prefix}/@CMAKE_INSTALL_INCLUDEDIR@' "includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@" \ + ''; + + nativeBuildInputs = [ cmake ]; + + buildInputs = [ gtest ]; + + meta = { + description = "Tiny header-only C++17 library for lat/lng geometry"; + homepage = "https://github.com/gistrec/geo-utils-cpp"; + license = lib.licenses.asl20; + maintainers = [ lib.maintainers.sikmir ]; + platforms = lib.platforms.unix; + }; +})