e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{ lib
|
|
, writeText
|
|
, flutter
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
flutter.buildFlutterApplication rec {
|
|
pname = "firmware-updater";
|
|
version = "unstable-2023-09-17";
|
|
|
|
pubspecLock = lib.importJSON ./pubspec.lock.json;
|
|
|
|
gitHashes = {
|
|
fwupd = "sha256-l/+HrrJk1mE2Mrau+NmoQ7bu9qhHU6wX68+m++9Hjd4=";
|
|
};
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "canonical";
|
|
repo = "firmware-updater";
|
|
rev = "855999da8d3d0c9930e06f2d296d82b55aeff79e";
|
|
hash = "sha256-tIeEuHl+sCKd756NYPmxXiV1Sg2m9W0eGUtM/Iskeu8=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Firmware Updater for Linux";
|
|
homepage = "https://github.com/canonical/firmware-updater";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ mkg20001 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|