1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 19:23:01 +03:00

overlay: Add missing make-flashable-zip.

This was broken in a hastily done rebase :/
This commit is contained in:
Samuel Dionne-Riel 2021-03-01 00:05:16 -05:00
parent 52d88c3800
commit 024b5344e1

View File

@ -0,0 +1,29 @@
{ runCommandNoCC, writeText, zip, mobile-nixos }:
let
inherit (mobile-nixos) android-flashable-zip-binaries;
in
{ script, copyFiles, name }:
let
update-script = writeText "update-script.rb" script;
in
runCommandNoCC name {
nativeBuildInputs = [
zip
];
} ''
mkdir -p zip
(
echo ":: Archiving flashable zip"
PS4=" $ "
set -x
cd zip
mkdir -p META-INF/com/google/android
${copyFiles}
cp ${update-script} update-script.rb
cp ${android-flashable-zip-binaries}/bin/update-binary META-INF/com/google/android/update-binary
zip $out $(find | sort)
)
''