diff options
author | Karl Hallsby <karl@hallsby.com> | 2021-01-06 11:45:14 -0600 |
---|---|---|
committer | Doron Behar <doron.behar@gmail.com> | 2021-02-24 21:00:51 +0200 |
commit | 7913c41c719ac01bd93f5dc87038b2b60ca14f3a (patch) | |
tree | abf36c1e3b72792b382665ebb62e2803e28aeb1e /pkgs/development/octave-modules/octproj | |
parent | 8919d9886254d6d9d01d844906bcdf905a129862 (diff) |
octave.pkgs.octproj: init at 2.0.1
Diffstat (limited to 'pkgs/development/octave-modules/octproj')
-rw-r--r-- | pkgs/development/octave-modules/octproj/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/octave-modules/octproj/default.nix b/pkgs/development/octave-modules/octproj/default.nix new file mode 100644 index 0000000000000..74596c015f856 --- /dev/null +++ b/pkgs/development/octave-modules/octproj/default.nix @@ -0,0 +1,32 @@ +{ 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"; + }; +} |