From 88d6c7c7a7a25a4025d99f7800ee6bbc18c418b3 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Mon, 2 Jan 2023 18:00:06 +0000 Subject: [PATCH] yubioath-flutter: package and set path to icon --- pkgs/applications/misc/yubioath-flutter/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/yubioath-flutter/default.nix b/pkgs/applications/misc/yubioath-flutter/default.nix index 11e414677cd6..50bb48347ac6 100644 --- a/pkgs/applications/misc/yubioath-flutter/default.nix +++ b/pkgs/applications/misc/yubioath-flutter/default.nix @@ -40,6 +40,10 @@ flutter.mkFlutterApp rec { # Swap the authenticator-helper symlink with the correct symlink. ln -fs "${passthru.helper}/bin/authenticator-helper" "$out/app/helper/authenticator-helper" + # Move the icon. + mkdir $out/share/icons + mv $out/app/linux_support/com.yubico.yubioath.png $out/share/icons + # Cleanup. rm -rf \ "$out/app/README.adoc" \ @@ -52,7 +56,8 @@ flutter.mkFlutterApp rec { # 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/authenticator" "$out/bin/yubioath-flutter" \ + --replace "@EXEC_PATH/linux_support/com.yubico.yubioath.png" "$out/share/icons/com.yubico.yubioath.png" ''; buildInputs = [