mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-24 22:04:20 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
76 lines
1.5 KiB
Nix
76 lines
1.5 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitLab
|
|
, fetchpatch
|
|
, appstream-glib
|
|
, desktop-file-utils
|
|
, fwupd
|
|
, gettext
|
|
, glib
|
|
, gtk3
|
|
, libsoup
|
|
, libxmlb
|
|
, meson
|
|
, ninja
|
|
, pkgconfig
|
|
, systemd
|
|
, help2man
|
|
, wrapGAppsHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnome-firmware-updater";
|
|
version = "3.34.0";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "hughsie";
|
|
repo = "gnome-firmware-updater";
|
|
rev = version;
|
|
sha256 = "04pll0fzf4nr276kfw89r0524s6ppmls5rz4vq2j8c8gb50g0b6l";
|
|
};
|
|
|
|
patches = [
|
|
# Fixes manual build
|
|
(fetchpatch {
|
|
url = "https://gitlab.gnome.org/hughsie/gnome-firmware-updater/commit/006b64dcb401d8c81a33222bc4be8274c23f3c9c.patch";
|
|
sha256 = "02303ip4ri5pv1bls8c0njb00qhn0jd0d8rmvsrig0fmacwfvc06";
|
|
})
|
|
(fetchpatch {
|
|
url = "https://gitlab.gnome.org/hughsie/gnome-firmware-updater/commit/c4f076f2c902080618e0c27dec924fd0019f68a3.patch";
|
|
sha256 = "1yfxd7qsg3gwpamg0m2sbcfrgks59w70r9728arrc4pwx1hia2q1";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
appstream-glib # for ITS rules
|
|
desktop-file-utils
|
|
gettext
|
|
help2man
|
|
meson
|
|
ninja
|
|
pkgconfig
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
fwupd
|
|
glib
|
|
gtk3
|
|
libsoup
|
|
libxmlb
|
|
systemd
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dconsolekit=false"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://gitlab.gnome.org/hughsie/gnome-firmware-updater";
|
|
description = "Tool for installing firmware on devices";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = teams.gnome.members;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|