2022-02-20 05:27:41 +00:00
|
|
|
{ lib
|
2023-10-09 19:29:22 +00:00
|
|
|
, writeText
|
2023-07-15 17:15:38 +00:00
|
|
|
, flutter
|
2022-02-20 05:27:41 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
flutter.buildFlutterApplication rec {
|
2022-02-20 05:27:41 +00:00
|
|
|
pname = "firmware-updater";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "unstable-2023-09-17";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
pubspecLock = lib.importJSON ./pubspec.lock.json;
|
|
|
|
|
|
|
|
gitHashes = {
|
|
|
|
fwupd = "sha256-l/+HrrJk1mE2Mrau+NmoQ7bu9qhHU6wX68+m++9Hjd4=";
|
|
|
|
};
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "canonical";
|
|
|
|
repo = "firmware-updater";
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "855999da8d3d0c9930e06f2d296d82b55aeff79e";
|
|
|
|
hash = "sha256-tIeEuHl+sCKd756NYPmxXiV1Sg2m9W0eGUtM/Iskeu8=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
postPatch = ''
|
|
|
|
rm -f pubspec.lock
|
|
|
|
ln -s "${writeText "${pname}-overrides.yaml" (builtins.toJSON {
|
|
|
|
dependency_overrides = {
|
|
|
|
yaru = "^1.1.0";
|
|
|
|
yaru_icons = "^2.2.1";
|
|
|
|
yaru_widgets = "^3.1.0";
|
|
|
|
mockito = "^5.4.2";
|
|
|
|
test_api = "^0.6.1";
|
|
|
|
};
|
|
|
|
})}" pubspec_overrides.yaml
|
|
|
|
'';
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Firmware Updater for Linux";
|
|
|
|
homepage = "https://github.com/canonical/firmware-updater";
|
2022-03-05 16:20:37 +00:00
|
|
|
license = licenses.gpl3Only;
|
2022-02-20 05:27:41 +00:00
|
|
|
maintainers = with maintainers; [ mkg20001 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|