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 , pcre2
, gnome , gnome
, makeWrapper , makeWrapper
, removeReferencesTo
}: }:
let let
vendorHashes = { vendorHashes = {
@ -64,16 +65,25 @@ flutter.mkFlutterApp rec {
substituteInPlace "$out/share/applications/com.yubico.authenticator.desktop" \ substituteInPlace "$out/share/applications/com.yubico.authenticator.desktop" \
--replace "@EXEC_PATH/authenticator" "$out/bin/yubioath-flutter" \ --replace "@EXEC_PATH/authenticator" "$out/bin/yubioath-flutter" \
--replace "@EXEC_PATH/linux_support/com.yubico.yubioath.png" "$out/share/icons/com.yubico.yubioath.png" --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 = [ nativeBuildInputs = [
makeWrapper makeWrapper
removeReferencesTo
]; ];
buildInputs = [ buildInputs = [
pcre2 pcre2
]; ];
disallowedReferences = [
flutter
flutter.unwrapped
];
meta = with lib; { meta = with lib; {
description = "Yubico Authenticator for Desktop"; description = "Yubico Authenticator for Desktop";
homepage = "https://github.com/Yubico/yubioath-flutter"; homepage = "https://github.com/Yubico/yubioath-flutter";