Skip to content

Commit 90a1f92

Browse files
osmium-tool: 1.16.0 → 1.17.0 (#373753)
2 parents dec882c + e642c8c commit 90a1f92

File tree

1 file changed

+11
-27
lines changed

1 file changed

+11
-27
lines changed

pkgs/by-name/os/osmium-tool/package.nix

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
lib,
33
stdenv,
44
fetchFromGitHub,
5-
fetchpatch,
65
cmake,
76
installShellFiles,
87
pandoc,
@@ -11,38 +10,22 @@
1110
expat,
1211
libosmium,
1312
lz4,
13+
nlohmann_json,
1414
protozero,
1515
zlib,
1616
}:
1717

18-
stdenv.mkDerivation rec {
18+
stdenv.mkDerivation (finalAttrs: {
1919
pname = "osmium-tool";
20-
version = "1.16.0";
20+
version = "1.17.0";
2121

2222
src = fetchFromGitHub {
2323
owner = "osmcode";
2424
repo = "osmium-tool";
25-
rev = "v${version}";
26-
sha256 = "sha256-DObqbzdPA4RlrlcZhqA0MQtWBE+D6GRD1pd9U4DARIk=";
25+
tag = "v${finalAttrs.version}";
26+
sha256 = "sha256-l6C2DGGKcbMUkKDruM8QzpriqFMvDnsi4OE99a2EzhA=";
2727
};
2828

29-
patches = [
30-
# Work around https://github.com/osmcode/osmium-tool/issues/276
31-
# by applying changes from https://github.com/Tencent/rapidjson/pull/719
32-
(fetchpatch {
33-
url = "https://github.com/Tencent/rapidjson/commit/3b2441b87f99ab65f37b141a7b548ebadb607b96.patch";
34-
hash = "sha256-Edmq+hdJQFQ4hT3Oz1cv5gX95qQxPLD4aY8QMTonDe8=";
35-
})
36-
(fetchpatch {
37-
url = "https://github.com/Tencent/rapidjson/commit/862c39be371278a45a88d4d1d75164be57bb7e2d.patch";
38-
hash = "sha256-V5zbq/THUY75p1RdEPKJK2NVnxbZs07MMwJBAH7nAMg=";
39-
})
40-
(fetchpatch {
41-
url = "https://github.com/osmcode/osmium-tool/commit/1c62771a62f260b07c1b9a52338a24a978dcd967.patch";
42-
hash = "sha256-/2HUu4tLRZzoCcGVEM61gE4RjiA2XGalr9OnhCUhKj8=";
43-
})
44-
];
45-
4629
nativeBuildInputs = [
4730
cmake
4831
installShellFiles
@@ -55,6 +38,7 @@ stdenv.mkDerivation rec {
5538
expat
5639
libosmium
5740
lz4
41+
nlohmann_json
5842
protozero
5943
zlib
6044
];
@@ -65,16 +49,16 @@ stdenv.mkDerivation rec {
6549
installShellCompletion --zsh ../zsh_completion/_osmium
6650
'';
6751

68-
meta = with lib; {
52+
meta = {
6953
description = "Multipurpose command line tool for working with OpenStreetMap data based on the Osmium library";
7054
homepage = "https://osmcode.org/osmium-tool/";
71-
changelog = "https://github.com/osmcode/osmium-tool/blob/v${version}/CHANGELOG.md";
72-
license = with licenses; [
55+
changelog = "https://github.com/osmcode/osmium-tool/blob/v${finalAttrs.version}/CHANGELOG.md";
56+
license = with lib.licenses; [
7357
gpl3Plus
7458
mit
7559
bsd3
7660
];
77-
maintainers = with maintainers; teams.geospatial.members ++ [ das-g ];
61+
maintainers = lib.teams.geospatial.members ++ (with lib.maintainers; [ das-g ]);
7862
mainProgram = "osmium";
7963
};
80-
}
64+
})

0 commit comments

Comments
 (0)