···99, mesonEmulatorHook
1010, ninja
1111, perl
1212-, rsync
1312, python3
1413, fetchpatch
1514, gettext
···7271 meson
7372 ninja
7473 perl
7575- rsync
76747775 # man pages
7876 libxslt
···131129 # at install time but Meson does not support this
132130 # so we need to convince it to install all files to a temporary
133131 # location using DESTDIR and then move it to proper one in postInstall.
134134- DESTDIR = "${placeholder "out"}/dest";
132132+ env.DESTDIR = "dest";
135133136134 inherit doCheck;
137135···165163166164 postInstall = ''
167165 # Move stuff from DESTDIR to proper location.
168168- # We use rsync to merge the directories.
169169- rsync --archive "${DESTDIR}/etc" "$out"
170170- rm --recursive "${DESTDIR}/etc"
171171- rsync --archive "${DESTDIR}${system}"/* "$out"
172172- rm --recursive "${DESTDIR}${system}"/*
173173- rmdir --parents --ignore-fail-on-non-empty "${DESTDIR}${system}"
166166+ # We need to be careful with the ordering to merge without conflicts.
174167 for o in $(getAllOutputNames); do
175175- rsync --archive "${DESTDIR}/''${!o}" "$(dirname "''${!o}")"
176176- rm --recursive "${DESTDIR}/''${!o}"
168168+ mv "$DESTDIR/''${!o}" "''${!o}"
177169 done
178178- # Ensure the DESTDIR is removed.
179179- destdirContainer="$(dirname "${DESTDIR}")"
180180- pushd "$destdirContainer"; rmdir --parents "''${DESTDIR##$destdirContainer/}${builtins.storeDir}"; popd
170170+ mv "$DESTDIR/etc" "$out"
171171+ mv "$DESTDIR${system}/share"/* "$out/share"
172172+ # Ensure we did not forget to install anything.
173173+ rmdir --parents --ignore-fail-on-non-empty "$DESTDIR${builtins.storeDir}" "$DESTDIR${system}/share"
174174+ ! test -e "$DESTDIR"
181175 '';
182176183177 meta = with lib; {