blob: 2b280c72b1ca3972dca13eff11796a7fdd8ff159 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{ 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;
};
}
|