From c1e7d3a4e5f53108f6802d88017725a791875e05 Mon Sep 17 00:00:00 2001 From: Siddarth Kumar Date: Wed, 17 Jan 2024 09:05:46 +0530 Subject: [PATCH] patch: unpack phase for missing jar --- nix/pkgs/aapt2/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nix/pkgs/aapt2/default.nix b/nix/pkgs/aapt2/default.nix index 70678216d33c..fddf2ac6a912 100644 --- a/nix/pkgs/aapt2/default.nix +++ b/nix/pkgs/aapt2/default.nix @@ -58,6 +58,11 @@ in stdenv.mkDerivation { mkdir -p $out for src in $srcs; do filename=$(stripHash $src) + # native-platform-linux-amd64-0.22-milestone-25.jar does not exist + if [[ "$filename" == "native-platform-linux-amd64-0.22-milestone-25.jar" ]]; then + filename="native-platform-linux-amd64-0.22-milestone-24.jar" + src=${src//native-platform-linux-amd64-0.22-milestone-25.jar/native-platform-linux-amd64-0.22-milestone-24.jar} + fi cp $src $out/$filename done tmpDir=$(mktemp -d)