yubioath-flutter: flutter itself should not be in the closure for yubioath-flutter

This commit is contained in:
Luke Granger-Brown 2023-01-23 03:55:02 +00:00
parent eb88ec0409
commit 9a1a1f1faa

View file

@ -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";