2021-05-25 20:21:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, sqlite
|
|
|
|
, libtiff
|
|
|
|
, curl
|
|
|
|
, gtest
|
|
|
|
}:
|
2010-07-28 11:55:54 +00:00
|
|
|
|
2019-07-10 00:39:33 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-03-27 23:49:34 +00:00
|
|
|
pname = "proj";
|
2022-01-03 00:51:50 +00:00
|
|
|
version = "8.2.1";
|
2007-12-05 21:25:47 +00:00
|
|
|
|
2019-07-10 00:39:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OSGeo";
|
|
|
|
repo = "PROJ";
|
|
|
|
rev = version;
|
2022-01-03 00:51:50 +00:00
|
|
|
hash = "sha256-tnaIqYKgYHY1Tg33jsKYn9QL8YUobgXKbQsodoCXNys=";
|
2007-12-05 21:25:47 +00:00
|
|
|
};
|
|
|
|
|
2019-07-10 00:39:33 +00:00
|
|
|
outputs = [ "out" "dev"];
|
|
|
|
|
2021-05-25 20:21:41 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2019-07-10 00:39:33 +00:00
|
|
|
|
2021-04-11 15:26:22 +00:00
|
|
|
buildInputs = [ sqlite libtiff curl ];
|
2019-07-10 00:39:33 +00:00
|
|
|
|
2021-05-25 20:21:41 +00:00
|
|
|
checkInputs = [ gtest ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DUSE_EXTERNAL_GTEST=ON"
|
2021-09-18 23:36:59 +00:00
|
|
|
"-DRUN_NETWORK_DEPENDENT_TESTS=OFF"
|
2021-05-25 20:21:41 +00:00
|
|
|
];
|
|
|
|
|
2021-11-18 15:58:09 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
export TMP=$TMPDIR
|
|
|
|
'';
|
|
|
|
|
2021-09-18 23:36:59 +00:00
|
|
|
doCheck = true;
|
2021-05-25 20:21:41 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2010-07-28 11:55:54 +00:00
|
|
|
description = "Cartographic Projections Library";
|
2021-09-18 23:36:59 +00:00
|
|
|
homepage = "https://proj.org/";
|
2014-11-08 20:15:46 +00:00
|
|
|
license = licenses.mit;
|
2021-05-25 20:21:41 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ vbgl dotlambda ];
|
2007-12-05 21:25:47 +00:00
|
|
|
};
|
|
|
|
}
|