yubioath-flutter: fix double wrapping

This commit is contained in:
Sandro Jäckel 2024-01-25 00:41:36 +01:00
parent 2e3fea45e7
commit deaea6d218
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -60,16 +60,17 @@ flutter.buildFlutterApplication rec {
# Symlink binary.
ln -sf "$out/app/authenticator" "$out/bin/yubioath-flutter"
# Needed for QR scanning to work.
wrapProgram "$out/bin/yubioath-flutter" \
--prefix PATH : ${lib.makeBinPath [ gnome.gnome-screenshot ]}
# Set the correct path to the binary in desktop file.
substituteInPlace "$out/share/applications/com.yubico.authenticator.desktop" \
--replace "@EXEC_PATH/authenticator" "$out/bin/yubioath-flutter" \
--replace "@EXEC_PATH/linux_support/com.yubico.yubioath.png" "$out/share/icons/com.yubico.yubioath.png"
'';
# Needed for QR scanning to work
extraWrapProgramArgs = ''
--prefix PATH : ${lib.makeBinPath [ gnome.gnome-screenshot ]}
'';
nativeBuildInputs = [
makeWrapper
removeReferencesTo