octave.pkgs.octproj: init at 2.0.1
This commit is contained in:
parent
8919d98862
commit
7913c41c71
32
pkgs/development/octave-modules/octproj/default.nix
Normal file
32
pkgs/development/octave-modules/octproj/default.nix
Normal file
@ -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";
|
||||||
|
};
|
||||||
|
}
|
@ -161,6 +161,8 @@ makeScope newScope (self:
|
|||||||
|
|
||||||
octclip = callPackage ../development/octave-modules/octclip { };
|
octclip = callPackage ../development/octave-modules/octclip { };
|
||||||
|
|
||||||
|
octproj = callPackage ../development/octave-modules/octproj { };
|
||||||
|
|
||||||
signal = callPackage ../development/octave-modules/signal { };
|
signal = callPackage ../development/octave-modules/signal { };
|
||||||
|
|
||||||
symbolic = callPackage ../development/octave-modules/symbolic {
|
symbolic = callPackage ../development/octave-modules/symbolic {
|
||||||
|
Loading…
Reference in New Issue
Block a user