yubioath-flutter: flutter itself should not be in the closure for yubioath-flutter
This commit is contained in:
parent
eb88ec0409
commit
9a1a1f1faa
1 changed files with 10 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
, pcre2
|
||||
, gnome
|
||||
, makeWrapper
|
||||
, removeReferencesTo
|
||||
}:
|
||||
let
|
||||
vendorHashes = {
|
||||
|
@ -64,16 +65,25 @@ flutter.mkFlutterApp rec {
|
|||
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"
|
||||
|
||||
# Remove unnecessary references to Flutter.
|
||||
remove-references-to -t ${flutter.unwrapped} $out/app/data/flutter_assets/shaders/ink_sparkle.frag
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
removeReferencesTo
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
pcre2
|
||||
];
|
||||
|
||||
disallowedReferences = [
|
||||
flutter
|
||||
flutter.unwrapped
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Yubico Authenticator for Desktop";
|
||||
homepage = "https://github.com/Yubico/yubioath-flutter";
|
||||
|
|
Loading…
Reference in a new issue