mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
Merge pull request #209038 from Kranzes/yubioath
This commit is contained in:
commit
63f3f76723
@ -4,6 +4,8 @@
|
||||
, fetchFromGitHub
|
||||
, stdenv
|
||||
, pcre2
|
||||
, gnome
|
||||
, makeWrapper
|
||||
}:
|
||||
let
|
||||
vendorHashes = {
|
||||
@ -54,12 +56,20 @@ flutter.mkFlutterApp 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"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
pcre2
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user