organicmaps: use finalAttrs pattern

This commit is contained in:
Francesco Gazzetta
2025-02-27 21:55:20 +00:00
parent a609f05d15
commit 439d34ffd1
@@ -28,14 +28,14 @@ let
rev = "30ecb0b3fe694a582edfacc2a7425b6f01f9fec6";
hash = "sha256-1FF658OhKg8a5kKX/7TVmsxZ9amimn4lB6bX9i7pnI4=";
};
in stdenv.mkDerivation rec {
in stdenv.mkDerivation (finalAttrs: {
pname = "organicmaps";
version = "2025.02.17-3";
src = fetchFromGitHub {
owner = "organicmaps";
repo = "organicmaps";
tag = "${version}-android";
tag = "${finalAttrs.version}-android";
hash = "sha256-9IDj+vkwSHsqX6Fe7siZV/RAxC242+4hDhXLjwc0tpg=";
fetchSubmodules = true;
};
@@ -45,7 +45,7 @@ in stdenv.mkDerivation rec {
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
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
@@ -99,4 +99,4 @@ in stdenv.mkDerivation rec {
platforms = platforms.all;
mainProgram = "OMaps";
};
}
})