nixpkgs/pkgs/applications/misc/gnome-firmware/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

70 lines
1.1 KiB
Nix

{ stdenv
, lib
, fetchFromGitLab
, gitUpdater
, appstream-glib
, desktop-file-utils
, fwupd
, gettext
, glib
, gtk4
, libadwaita
, libxmlb
, meson
, ninja
, pkg-config
, systemd
, help2man
, wrapGAppsHook4
}:
stdenv.mkDerivation rec {
pname = "gnome-firmware";
version = "45.0";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = "gnome-firmware";
rev = version;
sha256 = "sha256-KVyxOl7RdL80ZiEyiT+XGa/6Ss2g+5y+LIrR9TSRE+I=";
};
nativeBuildInputs = [
appstream-glib # for ITS rules
desktop-file-utils
gettext
help2man
meson
ninja
pkg-config
wrapGAppsHook4
];
buildInputs = [
fwupd
glib
gtk4
libadwaita
libxmlb
systemd
];
mesonFlags = [
"-Dconsolekit=false"
];
passthru.updateScript = gitUpdater {
ignoredVersions = "(alpha|beta|rc).*";
};
meta = with lib; {
homepage = "https://gitlab.gnome.org/World/gnome-firmware";
description = "Tool for installing firmware on devices";
mainProgram = "gnome-firmware";
license = licenses.gpl2Plus;
maintainers = teams.gnome.members;
platforms = platforms.linux;
};
}