depot/third_party/nixpkgs/pkgs/development/octave-modules/octproj/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

32 lines
854 B
Nix

{ buildOctavePackage
, lib
, fetchurl
, proj # >= 6.3.0
}:
buildOctavePackage rec {
pname = "octproj";
version = "2.0.1";
src = fetchurl {
url = "mirror://sourceforge/octave/${pname}-${version}.tar.gz";
sha256 = "1mb8gb0r8kky47ap85h9qqdvs40mjp3ya0nkh45gqhy67ml06paq";
};
# 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";
};
}