New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
open-orienteering-mapper: init at 0.8.1 #37326
Conversation
|
||
buildInputs = [ gdal qtbase qttools qtlocation qtsensors clipper zlib proj doxygen cups]; | ||
|
||
nativeBuildInputs = [ cmake makeWrapper ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also add ninja
?
|
||
nativeBuildInputs = [ cmake makeWrapper ]; | ||
|
||
enableParallelBuilding = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CMake builds in parallel by default.
|
||
buildInputs = [ ]; | ||
|
||
nativeBuildInputs = [ cmake unzip ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add ninja.
OpenOrienteering Mapper is an orienteering mapmaking program | ||
and provides a free alternative to the existing proprietary solution. | ||
''; | ||
homepage = http://www.openorienteering.org/apps/mapper/; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use https
sha256 = "1mqnmsb765970p9xfss6sf3ym0kmg8069qjlh5h5pjm3646bzphl"; | ||
}; | ||
|
||
cmakeFlags = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just use a single list?
patches = [ ./license.patch ]; | ||
|
||
src = fetchurl { | ||
url = "https://github.com/OpenOrienteering/mapper/archive/v${version}.tar.gz"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should use fetchFromGitHub
if you just want to download a tag.
enableParallelBuilding = true; | ||
|
||
# Don't build the manual or bundle licenses | ||
patches = [ ./license.patch ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use -DLICENSING_PROVIDER:BOOL=OFF
OpenOrienteering/mapper#886 (comment)
["-DPROJ4_ROOT=${proj}"] ++ | ||
# FindGDAL is broken and always finds /Library/Framework unless this is | ||
# specified | ||
["-DGDAL_INCLUDE_DIR=${gdal}/include"] ++ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you make the darwin specific flags conditional?
pkgs/top-level/all-packages.nix
Outdated
@@ -16915,6 +16917,8 @@ with pkgs; | |||
|
|||
openjump = callPackage ../applications/misc/openjump { }; | |||
|
|||
open-orienteering-mapper = libsForQt5.callPackage ../applications/gis/open-orienteering-mapper { }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The application is named OpenOrienteering Mapper so it should probably be named openorienteering-mapper as other distros do: https://repology.org/metapackage/openorienteering-mapper/versions
I made all of @jtojnar's suggested changes, thanks for the review. The patch turned out to not be necessary. |
version = "6.4.2"; | ||
name = "Clipper-${version}"; | ||
src = fetchurl { | ||
url = "https://download.sourceforge.net/project/polyclipping/clipper_ver${version}.zip"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use sourceforge mirror:
protocol.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean exactly? Replace https with mirror?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something like mirror://sourceforge/polyclipping/clipper_ver${version}.zip
I change the clipper url. |
@GrahamcOfBorg build openorienteering-mapper |
No attempt on x86_64-linux (full log) The following builds were skipped because they don't evaluate on x86_64-linux: openorienteering-mapper Partial log (click to expand)
|
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: openorienteering-mapper Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: openorienteering-mapper Partial log (click to expand)
|
LGTM, and Borg gave it the clear -- @jtojnar, if there's something else missed/you want changed, feel free to pin that on me and I'll fix it in a follow up. |
}: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "OpenOrienteering-Mapper-${version}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name attribute must not contain uppercase letters — e.g., "mplayer-1.0rc2" instead of "MPlayer-1.0rc2".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rules are still evolving and I feel like this one is being phased out these days.
Motivation for this change
Two new packages. I have only tested these on darwin.
This also depends on #35667 as otherwise some dependencies don't build.
I put this in the gis folder as it is related to qgis at least somewhat and if this doesn't get added there then nothing else ever will.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)