uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
87
pkgs/applications/misc/organicmaps/default.nix
Normal file
87
pkgs/applications/misc/organicmaps/default.nix
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
{ lib
|
||||
, mkDerivation
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, ninja
|
||||
, pkg-config
|
||||
, which
|
||||
, python3
|
||||
, rsync
|
||||
, makeWrapper
|
||||
, qtbase
|
||||
, qtsvg
|
||||
, libGLU
|
||||
, libGL
|
||||
, zlib
|
||||
, icu
|
||||
, freetype
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "organicmaps";
|
||||
version = "2022.05.31-10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "organicmaps";
|
||||
repo = "organicmaps";
|
||||
rev = "${version}-android";
|
||||
sha256 = "sha256-2GeWa4CQoY7hi24q0/cZBbq1Ofl2Jane9BiZ0N+IsSc=";
|
||||
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 ["." "-"] ["" ""] version}" > tools/unix/version.sh
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
ninja
|
||||
pkg-config
|
||||
which
|
||||
python3
|
||||
rsync
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
# Most dependencies are vendored
|
||||
buildInputs = [
|
||||
qtbase
|
||||
qtsvg
|
||||
libGLU
|
||||
libGL
|
||||
zlib
|
||||
icu
|
||||
freetype
|
||||
];
|
||||
|
||||
# Yes, this is PRE configure. The configure phase uses cmake
|
||||
preConfigure = ''
|
||||
bash ./configure.sh
|
||||
'';
|
||||
|
||||
# Tell the program that the read-only and the read-write data locations
|
||||
# are different, and create the read-write one.
|
||||
# https://github.com/organicmaps/organicmaps/issues/2387
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/OMaps \
|
||||
--add-flags "-resources_path $out/share/organicmaps/data" \
|
||||
--add-flags '-data_path "''${XDG_DATA_HOME:-''${HOME}/.local/share}/OMaps"' \
|
||||
--run 'mkdir -p "''${XDG_DATA_HOME:-''${HOME}/.local/share}/OMaps"'
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
# darwin: "invalid application of 'sizeof' to a function type"
|
||||
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
|
||||
homepage = "https://organicmaps.app/";
|
||||
description = "Detailed Offline Maps for Travellers, Tourists, Hikers and Cyclists";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ fgaz ];
|
||||
platforms = platforms.all;
|
||||
mainProgram = "OMaps";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue