Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

112 lines
2.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
ninja,
pkg-config,
which,
python3,
rsync,
wrapQtAppsHook,
qtbase,
qtpositioning,
qtsvg,
qtwayland,
libGLU,
libGL,
zlib,
icu,
freetype,
pugixml,
xorg,
nix-update-script,
}:
let
world_feed_integration_tests_data = fetchFromGitHub {
owner = "organicmaps";
repo = "world_feed_integration_tests_data";
rev = "30ecb0b3fe694a582edfacc2a7425b6f01f9fec6";
hash = "sha256-1FF658OhKg8a5kKX/7TVmsxZ9amimn4lB6bX9i7pnI4=";
};
in
stdenv.mkDerivation (finalAttrs: {
pname = "organicmaps";
version = "2025.10.05-7";
src = fetchFromGitHub {
owner = "organicmaps";
repo = "organicmaps";
tag = "${finalAttrs.version}-android";
hash = "sha256-U7CGXwClKByLVn2LAgEavZ96+AyvUlrZlB3HQLaQYH0=";
fetchSubmodules = true;
};
postPatch = ''
# Disable certificate check. It's dependent on time
echo "exit 0" > tools/unix/check_cert.sh
# crude fix for https://github.com/organicmaps/organicmaps/issues/1862
echo "echo ${lib.replaceStrings [ "." "-" ] [ "" "" ] finalAttrs.version}" > tools/unix/version.sh
# TODO use system boost instead, see https://github.com/organicmaps/organicmaps/issues/5345
patchShebangs 3party/boost/tools/build/src/engine/build.sh
# Prefetch test data, or the build system will try to fetch it with git.
ln -s ${world_feed_integration_tests_data} data/test_data/world_feed_integration_tests_data
'';
nativeBuildInputs = [
cmake
ninja
pkg-config
which
python3
rsync
wrapQtAppsHook
];
# Most dependencies are vendored
buildInputs = [
qtbase
qtpositioning
qtsvg
qtwayland
libGLU
libGL
zlib
icu
freetype
pugixml
xorg.libXrandr
xorg.libXinerama
xorg.libXcursor
];
# Yes, this is PRE configure. The configure phase uses cmake
preConfigure = ''
bash ./configure.sh
'';
passthru = {
updateScript = nix-update-script {
extraArgs = [
"-vr"
"(.*)-android"
];
};
};
meta = {
# darwin: "invalid application of 'sizeof' to a function type"
broken = stdenv.hostPlatform.isDarwin;
homepage = "https://organicmaps.app/";
description = "Detailed Offline Maps for Travellers, Tourists, Hikers and Cyclists";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fgaz ];
platforms = lib.platforms.all;
mainProgram = "OMaps";
};
})