From c756f0fd222d0166c5a3acf2508779435f218f67 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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nix/pkgs/aapt2/default.nix b/nix/pkgs/aapt2/default.nix index 70678216d33c..5cf0283cac9c 100644 --- a/nix/pkgs/aapt2/default.nix +++ b/nix/pkgs/aapt2/default.nix @@ -58,8 +58,12 @@ 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 + # but native-platform-linux-amd64-0.22-milestone-24.jar does exist + if [[ "$filename" == "native-platform-linux-amd64-0.22-milestone-25.jar" ]]; then + filename="native-platform-linux-amd64-0.22-milestone-24.jar" + fi cp $src $out/$filename - done tmpDir=$(mktemp -d) unzip $out/${filenames.jar} -d $tmpDir '';