yubioath-flutter: fix double wrapping
This commit is contained in:
parent
2e3fea45e7
commit
deaea6d218
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user