nixpkgs/pkgs/development/libraries/proj/default.nix

51 lines
875 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, sqlite
, libtiff
, curl
, gtest
}:
2019-07-10 00:39:33 +00:00
stdenv.mkDerivation rec {
2020-03-27 23:49:34 +00:00
pname = "proj";
version = "8.2.1";
2019-07-10 00:39:33 +00:00
src = fetchFromGitHub {
owner = "OSGeo";
repo = "PROJ";
rev = version;
hash = "sha256-tnaIqYKgYHY1Tg33jsKYn9QL8YUobgXKbQsodoCXNys=";
};
2019-07-10 00:39:33 +00:00
outputs = [ "out" "dev"];
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
checkInputs = [ gtest ];
cmakeFlags = [
"-DUSE_EXTERNAL_GTEST=ON"
2021-09-18 23:36:59 +00:00
"-DRUN_NETWORK_DEPENDENT_TESTS=OFF"
];
preCheck = ''
export HOME=$TMPDIR
export TMP=$TMPDIR
'';
2021-09-18 23:36:59 +00:00
doCheck = true;
meta = with lib; {
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;
platforms = platforms.unix;
maintainers = with maintainers; [ vbgl dotlambda ];
};
}