Merge sublime4: 4189 -> 4192; sublime4-dev: 4188 -> 4191 (#378651)
[NixPkgs.git] / pkgs / development / octave-modules / octproj / default.nix
blobd8da27eceb835f29565a0619d23f6c92ce92f685
2   buildOctavePackage,
3   lib,
4   fetchFromBitbucket,
5   proj, # >= 6.3.0
6 }:
8 buildOctavePackage rec {
9   pname = "octproj";
10   version = "3.0.2";
12   src = fetchFromBitbucket {
13     owner = "jgpallero";
14     repo = pname;
15     rev = "OctPROJ-${version}";
16     sha256 = "sha256-d/Zf172Etj+GA0cnGsQaKMjOmirE7Hwyj4UECpg7QFM=";
17   };
19   # The sed changes below allow for the package to be compiled.
20   patchPhase = ''
21     sed -i s/"error(errorText)"/"error(\"%s\", errorText)"/g src/*.cc
22     sed -i s/"warning(errorText)"/"warning(\"%s\", errorText)"/g src/*.cc
23   '';
25   propagatedBuildInputs = [
26     proj
27   ];
29   meta = with lib; {
30     homepage = "https://octave.sourceforge.io/octproj/index.html";
31     license = licenses.gpl3Plus;
32     maintainers = with maintainers; [ KarlJoad ];
33     description = "GNU Octave bindings to PROJ library for cartographic projections and CRS transformations";
34   };