1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 09:03:48 +00:00

proj: Patch test OPEN_MAX limit assumption (#145371)

One of the tests had a Linux-based assumption on the number of files
that can be opened. I have submitted this patch upstream here,
https://github.com/OSGeo/PROJ/pull/2934, and it's been merged but I
don't expect to be able to update to a release before ZHF ends.

Fixes #142875
This commit is contained in:
toonn 2021-11-10 22:03:40 +01:00 committed by GitHub
parent 7b90eb5d8f
commit aabbed57e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, pkg-config
, sqlite
@ -20,6 +21,14 @@ stdenv.mkDerivation rec {
sha256 = "sha256-Z2nruyowC3NG4Wb8AFBL0PME/zp9D7SwQdMSl6VjH/w=";
};
patches = [
(fetchpatch {
name = "Make-CApi-test-cross-platform.patch";
url = "https://github.com/OSGeo/PROJ/commit/ac113a8898cded7f5359f1edd3abc17a78eee9b4.patch";
sha256 = "0gz2xa5nxzck5c0yr7cspv3kw4cz3fxb2yic76w7qfvxidi7z1s1";
})
];
outputs = [ "out" "dev"];
nativeBuildInputs = [ cmake pkg-config ];