Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.5 kB · 111 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112{ 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="; };instdenv.mkDerivation (finalAttrs: { pname = "organicmaps"; version = "2025.07.13-9";
src = fetchFromGitHub { owner = "organicmaps"; repo = "organicmaps"; tag = "${finalAttrs.version}-android"; hash = "sha256-cEQmghS5qg5HTyWfDIB4G/Arh9BpM3iz1tToRWY8KrE="; 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"; };})