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";
|
2024-05-28 19:36:19 +00:00
|
|
|
version = "46.0";
|
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;
|
2024-05-28 19:36:19 +00:00
|
|
|
sha256 = "sha256-tEMSlKsqqPMZA0Gr89+u3dmAmZ7ffQm/2i1AB93y05E=";
|
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";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "gnome-firmware";
|
2019-08-28 19:46:42 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|