# Recipe for building PROJ at specific snapshot # # SPDX-FileCopyrightText: 2007 Marc Weber # SPDX-FileCopyrightText: 2019 Jonathan Ringer # SPDX-License-Identifier: MIT # # SPDX-FileCopyrightText: 2023 Nguyễn Gia Phong # SPDX-License-Identifier: AGPL-3.0-or-later { lib, stdenv, version, fetchFromGitHub, commit, hash , autoreconfHook, binRenameHook, pkg-config, sqlite }: stdenv.mkDerivation rec { name = "proj"; inherit version; src = fetchFromGitHub { owner = "OSGeo"; repo = "PROJ"; rev = commit; inherit hash; }; nativeBuildInputs = [ autoreconfHook binRenameHook pkg-config ]; buildInputs = [ sqlite ]; enableParallelBuilding = true; outputs = [ "out" "dev" ]; meta = with lib; { description = "Cartographic Projections Library"; homepage = "https://proj.org"; license = licenses.mit; platforms = platforms.all; }; }