mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
59742a5e04
This package broke when Octave went to version 7.1.
nixpkgs commit 8399907be3
fixed this.
Octave's 7.2 release built the fix into Octave itself, so this is also
a non-issue now.
35 lines
880 B
Nix
35 lines
880 B
Nix
{ 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 = with lib; {
|
|
homepage = "https://octave.sourceforge.io/octproj/index.html";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ KarlJoad ];
|
|
description = "GNU Octave bindings to PROJ library for cartographic projections and CRS transformations";
|
|
};
|
|
}
|