Commit 0209986e authored by David Orman's avatar David Orman
Browse files

yubioath-flutter: 6.4.0 -> 7.0.1

Upgrading package for new functionality introduced in >=7.0.0
Fixed flutter version-related issues and pin to 3.22
https://github.com/Yubico/yubioath-flutter/releases/tag/7.0.0
parent a9d40cea
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
{ lib
, flutter319
, flutter322
, python3
, fetchFromGitHub
, pcre2
@@ -11,15 +11,15 @@
, removeReferencesTo
}:

flutter319.buildFlutterApplication rec {
flutter322.buildFlutterApplication rec {
  pname = "yubioath-flutter";
  version = "6.4.0";
  version = "7.0.1";

  src = fetchFromGitHub {
    owner = "Yubico";
    repo = "yubioath-flutter";
    rev = version;
    hash = "sha256-aXUnmKEUCi0rsVr3HVhEk6xa1z9HMsH+0AIY531hqiU=";
    hash = "sha256-7FgZZCaafjNUaniPWVtba57zFABIJnLOw4GpyMsegKQ=";
  };

  passthru.helper = python3.pkgs.callPackage ./helper.nix { inherit src version meta; };
@@ -34,6 +34,9 @@ flutter319.buildFlutterApplication rec {

    substituteInPlace linux/CMakeLists.txt \
      --replace-fail "../build/linux/helper" "${passthru.helper}/libexec/helper"

    substituteInPlace linux/my_application.cc \
      --replace-fail "gtk_widget_realize(GTK_WIDGET(window));" "gtk_widget_show(GTK_WIDGET(window));"
  '';

  preInstall = ''
+196 −136

File changed.

Preview size limit exceeded, changes collapsed.