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
libroxml: init at 2.3.0 and osm2xmap: init at 2.0 c1f7b68 #30068
Conversation
|
||
name = "osm2xmap-2.0"; | ||
|
||
src = fetchurl { |
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 use fetchFromGitHub
?
''; | ||
|
||
preBuild = '' | ||
''; |
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.
I might be wrong but I don't think this overrides it, you might need to pass :
to do that, see #29583.
homepage = "https://github.com/sembruk/osm2xmap"; | ||
description = "Converter from OpenStreetMap data format to OpenOrienteering Mapper format."; | ||
license = stdenv.lib.licenses.gpl3; | ||
maintainers = [ ]; |
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.
A maintainer must be set.
buildInputs = [ libroxml proj libyamlcpp boost ]; | ||
|
||
|
||
meta = { |
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.
For libroxml
you have meta = with stdenv.lib;
, so you can also do that here for consistency if you like.
stdenv.mkDerivation { | ||
name = "libroxml-2.3.0"; | ||
src = fetchurl { | ||
url = "http://download.libroxml.net/pool/v2.x/libroxml-2.3.0.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.
For the last part of the URL you can just do ${name}.tar.gz
if you'd like (for example to have slightly less things to change if you ever update it). You will need to do stdenv.mkDerivation rec {
for that though.
description = "This library is minimum, easy-to-use, C implementation for xml file parsing."; | ||
license = licenses.lgpl3; | ||
platforms = platforms.unix; | ||
maintainers = with maintainers; [ ]; |
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.
Again, maintainers must be set.
Thanks @vyp I updated the patch taking into account most of your comments. I couldn't get the thing with |
"SHAREDIR=$(out)/share" | ||
"INSTALL_BINDIR=$(out)/bin" | ||
"INSTALL_BINDIR=$(out)/share/man/man1" | ||
"INSTALL_SHAREDIR=$(out)/share" |
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.
I cleaned things up a bit here.
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.
This broke the build. osm2xmap
is not available anymore after these changes.
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.
Typo: I wrote INSTALL_BINDIR=$(out)/share/man/man1
instead of INSTALL_MANDIR=$(out)/share/man/man1
pkgs/top-level/all-packages.nix
Outdated
url = "https://github.com/jbeder/yaml-cpp/archive/release-0.3.0.tar.gz"; | ||
sha256 = "12aszqw6svwlnb6nzhsbqhz3c7vnd5ahd0k6xlj05w8lm83hx3db"; | ||
}; | ||
}); |
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.
I would rather add a dedicated libyamlcpp_0_3
instead so everybody can use it.
Thanks for your help trying to clean things up @Mic92 but it broke the derivation. |
@mpickering So all I just meant was |
It is still broken.. Can you please revert your changes so this can be merged? |
@mpickering are you sure? The build output is identical. |
makeFlags = [ | ||
"GIT_VERSION=$(version)" | ||
"GIT_TIMESTAMP=" | ||
"SHAREDIR=$(out)/share" |
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.
This must be:
diff --git a/pkgs/applications/misc/osm2xmap/default.nix b/pkgs/applications/misc/osm2xmap/default.nix
index b827cca6e4c..b5b8e68e077 100644
--- a/pkgs/applications/misc/osm2xmap/default.nix
+++ b/pkgs/applications/misc/osm2xmap/default.nix
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
makeFlags = [
"GIT_VERSION=$(version)"
"GIT_TIMESTAMP="
- "SHAREDIR=$(out)/share"
+ "SHAREDIR=$(out)/share/"
"INSTALL_BINDIR=$(out)/bin"
"INSTALL_MANDIR=$(out)/share/man/man1"
"INSTALL_SHAREDIR=$(out)/share"
Now only adding |
I made a |
pkgs/top-level/all-packages.nix
Outdated
url = "https://github.com/jbeder/yaml-cpp/archive/release-0.3.0.tar.gz"; | ||
sha256 = "12aszqw6svwlnb6nzhsbqhz3c7vnd5ahd0k6xlj05w8lm83hx3db"; | ||
}; | ||
}); |
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.
indentation
pkgs/top-level/all-packages.nix
Outdated
|
||
osm2xmap = callPackage ../applications/misc/osm2xmap { | ||
libyamlcpp = libyamlcpp_0_3; | ||
|
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.
Please remove this empty line.
|
||
} | ||
|
||
|
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.
Please remove these empty lines
Removed the whitespace lines now. |
@GrahamcOfBorg build osm2xmap lxbroxml |
Failure on x86_64-linux (full log) Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Partial log (click to expand)
|
Failure on aarch64-linux (full log) Partial log (click to expand)
|
... d'oh. @GrahamcOfBorg build osm2xmap libroxml |
Failure on x86_64-darwin (full log) Partial log (click to expand)
|
Success on x86_64-linux (full log) Partial log (click to expand)
|
Success on aarch64-linux (full log) Partial log (click to expand)
|
Motivation for this change
A package which I packaged for my own personal use which wasn't already included.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)