mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 09:14:28 +00:00
yubioath-flutter: flutter itself should not be in the closure for yubioath-flutter
This commit is contained in:
parent
eb88ec0409
commit
9a1a1f1faa
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user