diff options
author | Nguyễn Gia Phong <cnx@loang.net> | 2023-11-02 07:14:30 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <cnx@loang.net> | 2023-11-02 07:14:30 +0900 |
commit | 5de7d79d93e009cf6e52f0006ef8bcbd00d3cf56 (patch) | |
tree | 10435d0e4ba91e9215b94140fd253c124ea54469 /proj/default.nix | |
parent | bb25f70192a3276f2cca2913e9012d2c56393bd6 (diff) | |
download | bux-main.tar.gz |
References: https://github.com/OSGeo/PROJ/issues/1654
Diffstat (limited to 'proj/default.nix')
-rw-r--r-- | proj/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/proj/default.nix b/proj/default.nix new file mode 100644 index 0000000..96b8470 --- /dev/null +++ b/proj/default.nix @@ -0,0 +1,35 @@ +# 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; + }; +} |