Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
882 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
buildOctavePackage,
lib,
fetchFromBitbucket,
proj, # >= 6.3.0
}:
buildOctavePackage rec {
pname = "octproj";
version = "3.0.2";
src = fetchFromBitbucket {
owner = "jgpallero";
repo = pname;
rev = "OctPROJ-${version}";
sha256 = "sha256-d/Zf172Etj+GA0cnGsQaKMjOmirE7Hwyj4UECpg7QFM=";
};
# The sed changes below allow for the package to be compiled.
patchPhase = ''
sed -i s/"error(errorText)"/"error(\"%s\", errorText)"/g src/*.cc
sed -i s/"warning(errorText)"/"warning(\"%s\", errorText)"/g src/*.cc
'';
propagatedBuildInputs = [
proj
];
meta = {
homepage = "https://gnu-octave.github.io/packages/octproj/";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ KarlJoad ];
description = "GNU Octave bindings to PROJ library for cartographic projections and CRS transformations";
};
}