2022-04-14 10:52:37 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2019-08-28 19:46:42 +00:00
|
|
|
, fetchFromGitLab
|
2022-06-03 13:28:04 +00:00
|
|
|
, gitUpdater
|
2019-08-28 19:46:42 +00:00
|
|
|
, appstream-glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, fwupd
|
|
|
|
, gettext
|
|
|
|
, glib
|
2022-04-14 10:52:37 +00:00
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
2019-08-28 19:46:42 +00:00
|
|
|
, libxmlb
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-17 02:09:27 +00:00
|
|
|
, pkg-config
|
2019-08-28 19:46:42 +00:00
|
|
|
, systemd
|
|
|
|
, help2man
|
2022-04-14 10:52:37 +00:00
|
|
|
, wrapGAppsHook4
|
2019-08-28 19:46:42 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-04-14 10:51:25 +00:00
|
|
|
pname = "gnome-firmware";
|
2023-02-21 09:21:46 +00:00
|
|
|
version = "43.2";
|
2019-08-28 19:46:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
2022-04-14 10:51:25 +00:00
|
|
|
owner = "World";
|
|
|
|
repo = "gnome-firmware";
|
2019-08-28 19:46:42 +00:00
|
|
|
rev = version;
|
2023-02-21 09:21:46 +00:00
|
|
|
sha256 = "oplypNSj028cVBn+eJxNm5pJltp7Cw5Oto/L39pI0vA=";
|
2019-08-28 19:46:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib # for ITS rules
|
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
|
|
|
help2man
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 02:09:27 +00:00
|
|
|
pkg-config
|
2022-04-14 10:52:37 +00:00
|
|
|
wrapGAppsHook4
|
2019-08-28 19:46:42 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fwupd
|
|
|
|
glib
|
2022-04-14 10:52:37 +00:00
|
|
|
gtk4
|
|
|
|
libadwaita
|
2019-08-28 19:46:42 +00:00
|
|
|
libxmlb
|
|
|
|
systemd
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dconsolekit=false"
|
|
|
|
];
|
|
|
|
|
2022-06-03 13:28:04 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
ignoredVersions = "(alpha|beta|rc).*";
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-04-14 10:51:25 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/World/gnome-firmware";
|
2019-08-28 19:46:42 +00:00
|
|
|
description = "Tool for installing firmware on devices";
|
|
|
|
license = licenses.gpl2Plus;
|
2020-04-01 12:40:51 +00:00
|
|
|
maintainers = teams.gnome.members;
|
2019-08-28 19:46:42 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|