summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkgs/os-specific/linux/firmware/fwupd/0001-nixos-add-option-for-installation-sysconfdir.patch (renamed from pkgs/os-specific/linux/firmware/fwupd/add-option-for-installation-sysconfdir.patch)68
-rw-r--r--pkgs/os-specific/linux/firmware/fwupd/0002-nixos-install-fwupdplugin-to-out.patch73
-rw-r--r--pkgs/os-specific/linux/firmware/fwupd/0003-nixos-introduce-installed_test_prefix.patch (renamed from pkgs/os-specific/linux/firmware/fwupd/installed-tests-path.patch)43
-rw-r--r--pkgs/os-specific/linux/firmware/fwupd/0004-nixos-get-efi-app-from-fwupd-efi.patch25
-rw-r--r--pkgs/os-specific/linux/firmware/fwupd/default.nix48
-rw-r--r--pkgs/os-specific/linux/firmware/fwupd/efi-app-path.patch13
-rw-r--r--pkgs/os-specific/linux/firmware/fwupd/install-fwupdplugin-to-out.patch37
7 files changed, 191 insertions, 116 deletions
diff --git a/pkgs/os-specific/linux/firmware/fwupd/add-option-for-installation-sysconfdir.patch b/pkgs/os-specific/linux/firmware/fwupd/0001-nixos-add-option-for-installation-sysconfdir.patch
index 2a6ae96cef11..c7bd63082589 100644
--- a/pkgs/os-specific/linux/firmware/fwupd/add-option-for-installation-sysconfdir.patch
+++ b/pkgs/os-specific/linux/firmware/fwupd/0001-nixos-add-option-for-installation-sysconfdir.patch
@@ -1,3 +1,22 @@
+From 174009a71362e800e35d512bb33b0aeef91e3c6f Mon Sep 17 00:00:00 2001
+From: Bernardo Meurer <bernardo@meurer.org>
+Date: Tue, 15 Nov 2022 21:59:14 -0500
+Subject: [PATCH 1/4] nixos: add option for installation sysconfdir
+
+---
+ data/bios-settings.d/meson.build | 2 +-
+ data/meson.build | 2 +-
+ data/pki/meson.build | 8 ++++----
+ data/remotes.d/meson.build | 8 ++++----
+ meson.build | 6 ++++++
+ meson_options.txt | 1 +
+ plugins/dell-esrt/meson.build | 2 +-
+ plugins/msr/meson.build | 2 +-
+ plugins/redfish/meson.build | 2 +-
+ plugins/thunderbolt/meson.build | 2 +-
+ plugins/uefi-capsule/meson.build | 4 ++--
+ 11 files changed, 23 insertions(+), 16 deletions(-)
+
diff --git a/data/bios-settings.d/meson.build b/data/bios-settings.d/meson.build
index b0ff5b106..13ac380d0 100644
--- a/data/bios-settings.d/meson.build
@@ -10,7 +29,7 @@ index b0ff5b106..13ac380d0 100644
)
endif
diff --git a/data/meson.build b/data/meson.build
-index 3a77a7bfc..747bd1988 100644
+index 865b20e26..ff1c2657b 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -26,7 +26,7 @@ endif
@@ -20,8 +39,8 @@ index 3a77a7bfc..747bd1988 100644
- install_dir: join_paths(sysconfdir, 'fwupd')
+ install_dir: join_paths(sysconfdir_install, 'fwupd')
)
- plugin_quirks += join_paths(meson.current_source_dir(), 'power.quirk')
- plugin_quirks += join_paths(meson.current_source_dir(), 'cfi.quirk')
+ plugin_quirks += files([
+ 'power.quirk',
diff --git a/data/pki/meson.build b/data/pki/meson.build
index 3649fecea..c3462744b 100644
--- a/data/pki/meson.build
@@ -57,7 +76,7 @@ index 3649fecea..c3462744b 100644
)
endif
diff --git a/data/remotes.d/meson.build b/data/remotes.d/meson.build
-index 1d1698a7e..5469d00a6 100644
+index 4ef0266f0..ecd3c9610 100644
--- a/data/remotes.d/meson.build
+++ b/data/remotes.d/meson.build
@@ -2,7 +2,7 @@ if build_standalone and get_option('lvfs') != 'false'
@@ -69,7 +88,7 @@ index 1d1698a7e..5469d00a6 100644
)
con3 = configuration_data()
if get_option('lvfs') == 'disabled'
-@@ -15,7 +15,7 @@ if build_standalone and get_option('lvfs') != 'false'
+@@ -20,7 +20,7 @@ if build_standalone and get_option('lvfs') != 'false'
output: 'lvfs.conf',
configuration: con3,
install: true,
@@ -78,7 +97,7 @@ index 1d1698a7e..5469d00a6 100644
)
i18n.merge_file(
input: 'lvfs.metainfo.xml',
-@@ -49,12 +49,12 @@ configure_file(
+@@ -54,12 +54,12 @@ configure_file(
output: 'vendor.conf',
configuration: con2,
install: true,
@@ -94,10 +113,10 @@ index 1d1698a7e..5469d00a6 100644
+ install_dir: join_paths(sysconfdir_install, 'fwupd', 'remotes.d'),
)
diff --git a/meson.build b/meson.build
-index e7980e965..2c66e2dc4 100644
+index d3e08af43..30011f548 100644
--- a/meson.build
+++ b/meson.build
-@@ -195,6 +195,12 @@ endif
+@@ -193,6 +193,12 @@ endif
mandir = join_paths(prefix, get_option('mandir'))
localedir = join_paths(prefix, get_option('localedir'))
@@ -111,7 +130,7 @@ index e7980e965..2c66e2dc4 100644
gio = dependency('gio-2.0', version: '>= 2.45.8')
giounix = dependency('gio-unix-2.0', version: '>= 2.45.8', required: false)
diff --git a/meson_options.txt b/meson_options.txt
-index 6cf92e72e..2e8568292 100644
+index 204690640..6fc7e8437 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,3 +1,4 @@
@@ -120,10 +139,10 @@ index 6cf92e72e..2e8568292 100644
option('consolekit', type : 'feature', description : 'ConsoleKit support', deprecated: {'true': 'enabled', 'false': 'disabled'})
option('static_analysis', type : 'boolean', value : false, description : 'enable GCC static analysis support')
diff --git a/plugins/dell-esrt/meson.build b/plugins/dell-esrt/meson.build
-index 67bd3b9d9..ad04a91b6 100644
+index 88c039f85..62a7691f3 100644
--- a/plugins/dell-esrt/meson.build
+++ b/plugins/dell-esrt/meson.build
-@@ -38,6 +38,6 @@ configure_file(
+@@ -27,6 +27,6 @@ configure_file(
output: 'dell-esrt.conf',
configuration: con2,
install: true,
@@ -132,7 +151,7 @@ index 67bd3b9d9..ad04a91b6 100644
)
endif
diff --git a/plugins/msr/meson.build b/plugins/msr/meson.build
-index d626c3ad3..5a2f847d5 100644
+index 23ec5ec82..b03826fc0 100644
--- a/plugins/msr/meson.build
+++ b/plugins/msr/meson.build
@@ -10,7 +10,7 @@ install_data(['fwupd-msr.conf'],
@@ -142,27 +161,27 @@ index d626c3ad3..5a2f847d5 100644
- install_dir: join_paths(sysconfdir, 'fwupd')
+ install_dir: join_paths(sysconfdir_install, 'fwupd')
)
- shared_module('fu_plugin_msr',
- fu_hash,
+ plugin_builtins += static_library('fu_plugin_msr',
+ sources: [
diff --git a/plugins/redfish/meson.build b/plugins/redfish/meson.build
-index 95606e478..e5355e520 100644
+index 1e35b6ce9..33ca1447f 100644
--- a/plugins/redfish/meson.build
+++ b/plugins/redfish/meson.build
-@@ -43,7 +43,7 @@ shared_module('fu_plugin_redfish',
- )
+@@ -35,7 +35,7 @@ plugin_builtin_redfish = static_library('fu_plugin_redfish',
+ plugin_builtins += plugin_builtin_redfish
install_data(['redfish.conf'],
- install_dir: join_paths(sysconfdir, 'fwupd'),
+ install_dir: join_paths(sysconfdir_install, 'fwupd'),
+ install_mode: 'rw-r-----',
)
- if get_option('tests')
diff --git a/plugins/thunderbolt/meson.build b/plugins/thunderbolt/meson.build
-index 5f8ffbf90..9ba323e75 100644
+index 71d930e62..399fb5781 100644
--- a/plugins/thunderbolt/meson.build
+++ b/plugins/thunderbolt/meson.build
-@@ -32,7 +32,7 @@ fu_plugin_thunderbolt = shared_module('fu_plugin_thunderbolt',
- )
+@@ -19,7 +19,7 @@ plugin_builtin_thunderbolt = static_library('fu_plugin_thunderbolt',
+ plugin_builtins += plugin_builtin_thunderbolt
install_data(['thunderbolt.conf'],
- install_dir: join_paths(sysconfdir, 'fwupd')
@@ -171,7 +190,7 @@ index 5f8ffbf90..9ba323e75 100644
# we use functions from 2.52 in the tests
if get_option('tests') and run_sanitize_unsafe_tests and umockdev.found() and gio.version().version_compare('>= 2.52')
diff --git a/plugins/uefi-capsule/meson.build b/plugins/uefi-capsule/meson.build
-index ef38dc03e..78ff65e1d 100644
+index b4b038313..9c5407c3f 100644
--- a/plugins/uefi-capsule/meson.build
+++ b/plugins/uefi-capsule/meson.build
@@ -20,7 +20,7 @@ if host_machine.system() == 'linux'
@@ -183,7 +202,7 @@ index ef38dc03e..78ff65e1d 100644
)
elif host_machine.system() == 'freebsd'
backend_srcs += 'fu-uefi-backend-freebsd.c'
-@@ -110,7 +110,7 @@ if get_option('compat_cli') and get_option('man')
+@@ -87,7 +87,7 @@ if get_option('compat_cli') and get_option('man')
endif
install_data(['uefi_capsule.conf'],
@@ -192,3 +211,6 @@ index ef38dc03e..78ff65e1d 100644
)
# add all the .po files as inputs to watch
+--
+2.38.1
+
diff --git a/pkgs/os-specific/linux/firmware/fwupd/0002-nixos-install-fwupdplugin-to-out.patch b/pkgs/os-specific/linux/firmware/fwupd/0002-nixos-install-fwupdplugin-to-out.patch
new file mode 100644
index 000000000000..d3e008767c13
--- /dev/null
+++ b/pkgs/os-specific/linux/firmware/fwupd/0002-nixos-install-fwupdplugin-to-out.patch
@@ -0,0 +1,73 @@
+From 5fabcf8be6cc75bf3aa909a33ba86cdfd85ce122 Mon Sep 17 00:00:00 2001
+From: Bernardo Meurer <bernardo@meurer.org>
+Date: Tue, 15 Nov 2022 22:00:32 -0500
+Subject: [PATCH 2/4] nixos: install fwupdplugin to out
+
+This avoids a cycle
+---
+ libfwupdplugin/meson.build | 5 +++--
+ plugins/modem-manager/meson.build | 2 +-
+ src/meson.build | 4 ++--
+ 3 files changed, 6 insertions(+), 5 deletions(-)
+
+diff --git a/libfwupdplugin/meson.build b/libfwupdplugin/meson.build
+index 71667b6bc..b944d97f2 100644
+--- a/libfwupdplugin/meson.build
++++ b/libfwupdplugin/meson.build
+@@ -250,7 +250,7 @@ fwupdplugin = library(
+ ],
+ link_args: cc.get_supported_link_arguments([vflag]),
+ link_depends: fwupdplugin_mapfile,
+- install_dir: libdir_pkg,
++ install_dir: bindir / '..' / 'lib',
+ install: true
+ )
+
+@@ -300,7 +300,8 @@ if introspection.allowed()
+ girtargets,
+ fwupd_gir[0],
+ ],
+- install: false
++ install: true,
++ install_dir_typelib: bindir / '..' / 'lib' / 'girepository-1.0',
+ )
+
+ # Verify the map file is correct -- note we can't actually use the generated
+diff --git a/plugins/modem-manager/meson.build b/plugins/modem-manager/meson.build
+index 325c55e05..290dbdb72 100644
+--- a/plugins/modem-manager/meson.build
++++ b/plugins/modem-manager/meson.build
+@@ -26,7 +26,7 @@ shared_module('fu_plugin_modem_manager',
+ include_directories: plugin_incdirs,
+ install: true,
+ install_rpath: libdir_pkg,
+- install_dir: libdir_pkg,
++ install_dir: bindir / '..' / 'lib',
+ c_args: cargs,
+ link_with: plugin_libs,
+ dependencies: [
+diff --git a/src/meson.build b/src/meson.build
+index ebb262224..19e333972 100644
+--- a/src/meson.build
++++ b/src/meson.build
+@@ -87,7 +87,7 @@ fwupdutil = library(
+ ],
+ install: true,
+ install_rpath: libdir_pkg,
+- install_dir: libdir_pkg,
++ install_dir: bindir / '..' / 'lib',
+ include_directories: [
+ root_incdir,
+ fwupd_incdir,
+@@ -199,7 +199,7 @@ fwupdengine = library(
+ sources: fwupd_engine_src,
+ install: true,
+ install_rpath: libdir_pkg,
+- install_dir: libdir_pkg,
++ install_dir: bindir / '..' / 'lib',
+ include_directories: plugin_incdirs,
+ dependencies: [
+ daemon_dep,
+--
+2.38.1
+
diff --git a/pkgs/os-specific/linux/firmware/fwupd/installed-tests-path.patch b/pkgs/os-specific/linux/firmware/fwupd/0003-nixos-introduce-installed_test_prefix.patch
index 49bca65d9c60..abb3bdfb67cd 100644
--- a/pkgs/os-specific/linux/firmware/fwupd/installed-tests-path.patch
+++ b/pkgs/os-specific/linux/firmware/fwupd/0003-nixos-introduce-installed_test_prefix.patch
@@ -1,19 +1,30 @@
+From cf3828fd656127dedafa10a3f8513f494964fcc3 Mon Sep 17 00:00:00 2001
+From: Bernardo Meurer <bernardo@meurer.org>
+Date: Tue, 15 Nov 2022 22:03:15 -0500
+Subject: [PATCH 3/4] nixos: introduce installed_test_prefix
+
+---
+ data/installed-tests/meson.build | 2 +-
+ meson.build | 5 +++--
+ meson_options.txt | 1 +
+ 3 files changed, 5 insertions(+), 3 deletions(-)
+
diff --git a/data/installed-tests/meson.build b/data/installed-tests/meson.build
-index b8ec916f..38209b36 100644
+index be3d5c6d9..14d45dcaf 100644
--- a/data/installed-tests/meson.build
+++ b/data/installed-tests/meson.build
@@ -83,5 +83,5 @@ configure_file(
- output : 'fwupd-tests.conf',
- configuration : con2,
+ output: 'fwupd-tests.conf',
+ configuration: con2,
install: true,
- install_dir: join_paths(sysconfdir, 'fwupd', 'remotes.d'),
+ install_dir: join_paths(get_option('installed_test_prefix'), 'etc', 'fwupd', 'remotes.d'),
)
diff --git a/meson.build b/meson.build
-index b91dd037..d7e20b18 100644
+index 30011f548..7ac8c937a 100644
--- a/meson.build
+++ b/meson.build
-@@ -188,8 +188,8 @@ else
+@@ -186,8 +186,8 @@ else
datadir = join_paths(prefix, get_option('datadir'))
sysconfdir = join_paths(prefix, get_option('sysconfdir'))
localstatedir = join_paths(prefix, get_option('localstatedir'))
@@ -24,7 +35,7 @@ index b91dd037..d7e20b18 100644
daemon_dir = join_paths(libexecdir, 'fwupd')
endif
mandir = join_paths(prefix, get_option('mandir'))
-@@ -492,6 +492,7 @@ gnome = import('gnome')
+@@ -498,6 +498,7 @@ gnome = import('gnome')
i18n = import('i18n')
conf.set_quoted('FWUPD_PREFIX', prefix)
@@ -33,10 +44,10 @@ index b91dd037..d7e20b18 100644
conf.set_quoted('FWUPD_LIBDIR', libdir)
conf.set_quoted('FWUPD_LIBEXECDIR', libexecdir)
diff --git a/meson_options.txt b/meson_options.txt
-index d00038db..be1c45b4 100644
+index 6fc7e8437..29832fd08 100644
--- a/meson_options.txt
+++ b/meson_options.txt
-@@ -56,6 +56,7 @@ option('systemd', type : 'feature', description : 'systemd support', deprecated:
+@@ -57,6 +57,7 @@ option('systemd', type : 'feature', description : 'systemd support', deprecated:
option('systemd_unit_user', type : 'string', description : 'User account to use for fwupd-refresh.service (empty for DynamicUser)')
option('systemd_root_prefix', type: 'string', value: '', description: 'Directory to base systemd’s installation directories on')
option('elogind', type : 'feature', description : 'elogind support', deprecated: {'true': 'enabled', 'false': 'disabled'})
@@ -44,16 +55,6 @@ index d00038db..be1c45b4 100644
option('tests', type : 'boolean', value : true, description : 'enable tests')
option('soup_session_compat', type : 'boolean', value : true, description : 'enable SoupSession runtime compatibility support')
option('curl', type : 'feature', description : 'libcurl support', deprecated: {'true': 'enabled', 'false': 'disabled'})
-diff --git a/plugins/redfish/fu-self-test.c b/plugins/redfish/fu-self-test.c
-index 4d19e560..91cfaa61 100644
---- a/plugins/redfish/fu-self-test.c
-+++ b/plugins/redfish/fu-self-test.c
-@@ -27,7 +27,7 @@ fu_test_is_installed_test(void)
- const gchar *builddir = g_getenv("G_TEST_BUILDDIR");
- if (builddir == NULL)
- return FALSE;
-- return g_str_has_prefix(builddir, FWUPD_PREFIX);
-+ return g_str_has_prefix(builddir, FWUPD_INSTALLED_TEST_PREFIX);
- }
-
- static void
+--
+2.38.1
+
diff --git a/pkgs/os-specific/linux/firmware/fwupd/0004-nixos-get-efi-app-from-fwupd-efi.patch b/pkgs/os-specific/linux/firmware/fwupd/0004-nixos-get-efi-app-from-fwupd-efi.patch
new file mode 100644
index 000000000000..e0ba074fcaa6
--- /dev/null
+++ b/pkgs/os-specific/linux/firmware/fwupd/0004-nixos-get-efi-app-from-fwupd-efi.patch
@@ -0,0 +1,25 @@
+From 195df43951e0667409d4226a4291fcb32882ee60 Mon Sep 17 00:00:00 2001
+From: Bernardo Meurer <bernardo@meurer.org>
+Date: Tue, 15 Nov 2022 22:07:22 -0500
+Subject: [PATCH 4/4] nixos: get efi app from fwupd-efi
+
+---
+ meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index 7ac8c937a..5a23d0c80 100644
+--- a/meson.build
++++ b/meson.build
+@@ -419,7 +419,7 @@ if build_standalone and efiboot.found() and efivar.found()
+ conf.set('HAVE_EFI_TIME_T', '1')
+ endif
+
+- efi_app_location = join_paths(libexecdir, 'fwupd', 'efi')
++ efi_app_location = join_paths(dependency('fwupd-efi').get_variable(pkgconfig: 'prefix'), 'libexec', 'fwupd', 'efi')
+ conf.set_quoted('EFI_APP_LOCATION', efi_app_location)
+
+ if host_cpu == 'x86'
+--
+2.38.1
+
diff --git a/pkgs/os-specific/linux/firmware/fwupd/default.nix b/pkgs/os-specific/linux/firmware/fwupd/default.nix
index 66cfbef940bf..7e24de97a268 100644
--- a/pkgs/os-specific/linux/firmware/fwupd/default.nix
+++ b/pkgs/os-specific/linux/firmware/fwupd/default.nix
@@ -2,7 +2,6 @@
{ stdenv
, lib
-, fetchurl
, fetchFromGitHub
, gi-docgen
, pkg-config
@@ -52,12 +51,16 @@
, libmbim
, libcbor
, xz
+
+, breakpointHook
+, ripgrep
}:
let
python = python3.withPackages (p: with p; [
pygobject3
setuptools
+ markdown
]);
isx86 = stdenv.hostPlatform.isx86;
@@ -85,13 +88,13 @@ let
test-firmware =
let
- version = "unstable-2021-11-02";
+ version = "unstable-2022-04-02";
src = fetchFromGitHub {
name = "fwupd-test-firmware-${version}";
owner = "fwupd";
repo = "fwupd-test-firmware";
- rev = "aaa2f9fd68a40684c256dd85b86093cba38ffd9d";
- sha256 = "Slk7CNfkmvmOh3WtIBkPs3NYT96co6i8PwqcbpeVFgA=";
+ rev = "39954e434d63e20e85870dd1074818f48a0c08b7";
+ hash = "sha256-d4qG3fKyxkfN91AplRYqARFz+aRr+R37BpE450bPxi0=";
passthru = {
inherit src version; # For update script
updateScript = unstableGitUpdater {
@@ -114,16 +117,18 @@ let
self = stdenv.mkDerivation rec {
pname = "fwupd";
- version = "1.8.4";
+ version = "1.8.7";
# libfwupd goes to lib
# daemon, plug-ins and libfwupdplugin go to out
# CLI programs go to out
outputs = [ "out" "lib" "dev" "devdoc" "man" "installedTests" ];
- src = fetchurl {
- url = "https://people.freedesktop.org/~hughsient/releases/fwupd-${version}.tar.xz";
- sha256 = "sha256-rfoHQ0zcKexBxA/vRg6Nlwlj/gx+hJ3sfzkyrbFh+IY=";
+ src = fetchFromGitHub {
+ owner = pname;
+ repo = pname;
+ rev = version;
+ hash = "sha256-XywBv+d4rG25KxzkZ6xzxIYbNO2Fj5j7xLfSEGBl6Fc=";
};
patches = [
@@ -132,18 +137,18 @@ let
# Let’s install the files to $prefix/etc
# while still reading them from /etc.
# NixOS module for fwupd will take take care of copying the files appropriately.
- ./add-option-for-installation-sysconfdir.patch
+ ./0001-nixos-add-option-for-installation-sysconfdir.patch
# Install plug-ins and libfwupdplugin to $out output,
# they are not really part of the library.
- ./install-fwupdplugin-to-out.patch
+ ./0002-nixos-install-fwupdplugin-to-out.patch
# Installed tests are installed to different output
# we also cannot have fwupd-tests.conf in $out/etc since it would form a cycle.
- ./installed-tests-path.patch
+ ./0003-nixos-introduce-installed_test_prefix.patch
# EFI capsule is located in fwupd-efi now.
- ./efi-app-path.patch
+ ./0004-nixos-get-efi-app-from-fwupd-efi.patch
];
nativeBuildInputs = [
@@ -161,6 +166,9 @@ let
python
wrapGAppsNoGuiHook
vala
+
+ breakpointHook
+ ripgrep
];
buildInputs = [
@@ -210,8 +218,6 @@ let
"-Dsysconfdir_install=${placeholder "out"}/etc"
"-Defi_os_dir=nixos"
"-Dplugin_modem_manager=enabled"
- # Requires Meson 0.63
- "-Dgresource_quirks=disabled"
# We do not want to place the daemon into lib (cyclic reference)
"--libexecdir=${placeholder "out"}/libexec"
@@ -232,8 +238,7 @@ let
# TODO: wrapGAppsHook wraps efi capsule even though it is not ELF
dontWrapGApps = true;
- # /etc/os-release not available in sandbox
- # doCheck = true;
+ doCheck = true;
# Environment variables
@@ -254,16 +259,15 @@ let
postPatch = ''
patchShebangs \
contrib/generate-version-script.py \
- meson_post_install.sh \
po/test-deps
- # This checks a version of a dependency of gi-docgen but gi-docgen is self-contained in Nixpkgs.
- echo "Clearing docs/test-deps.py"
- test -f docs/test-deps.py
- echo > docs/test-deps.py
-
substituteInPlace data/installed-tests/fwupdmgr-p2p.sh \
--replace "gdbus" ${glib.bin}/bin/gdbus
+
+ # patch-out broken tests that need /etc/machine-id
+ sed -i 's/test(.*)//' plugins/lenovo-thinklmi/meson.build
+ sed -i 's/test(.*)//' plugins/synaptics-mst/meson.build
+ sed -i 's/test(.*)//' src/meson.build
'';
preBuild = ''
diff --git a/pkgs/os-specific/linux/firmware/fwupd/efi-app-path.patch b/pkgs/os-specific/linux/firmware/fwupd/efi-app-path.patch
deleted file mode 100644
index afee6d9f61ea..000000000000
--- a/pkgs/os-specific/linux/firmware/fwupd/efi-app-path.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/meson.build b/meson.build
-index b91dd037..01d70a61 100644
---- a/meson.build
-+++ b/meson.build
-@@ -413,7 +413,7 @@ if build_standalone and efiboot.found() and efivar.found()
- conf.set('HAVE_EFI_TIME_T', '1')
- endif
-
-- efi_app_location = join_paths(libexecdir, 'fwupd', 'efi')
-+ efi_app_location = join_paths(dependency('fwupd-efi').get_pkgconfig_variable('prefix'), 'libexec', 'fwupd', 'efi')
- conf.set_quoted('EFI_APP_LOCATION', efi_app_location)
-
- if host_cpu == 'x86'
diff --git a/pkgs/os-specific/linux/firmware/fwupd/install-fwupdplugin-to-out.patch b/pkgs/os-specific/linux/firmware/fwupd/install-fwupdplugin-to-out.patch
deleted file mode 100644
index f3369b6e1333..000000000000
--- a/pkgs/os-specific/linux/firmware/fwupd/install-fwupdplugin-to-out.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-diff --git a/libfwupdplugin/meson.build b/libfwupdplugin/meson.build
-index 1afa28e1..3da81d30 100644
---- a/libfwupdplugin/meson.build
-+++ b/libfwupdplugin/meson.build
-@@ -220,7 +220,8 @@ fwupdplugin = library(
- ],
- link_args: cc.get_supported_link_arguments([vflag]),
- link_depends: fwupdplugin_mapfile,
-- install: true
-+ install: true,
-+ install_dir: bindir / '..' / 'lib',
- )
-
- fwupdplugin_pkgg = import('pkgconfig')
-@@ -280,7 +281,8 @@ if introspection.allowed()
- girtargets,
- fwupd_gir[0],
- ],
-- install: true
-+ install: true,
-+ install_dir_typelib: bindir / '..' / 'lib' / 'girepository-1.0',
- )
-
- # Verify the map file is correct -- note we can't actually use the generated
-diff --git a/meson.build b/meson.build
-index b91dd037..f97b4c26 100644
---- a/meson.build
-+++ b/meson.build
-@@ -504,7 +504,7 @@ if build_standalone
- if host_machine.system() == 'windows'
- plugin_dir = 'fwupd-plugins-@0@'.format(libfwupdplugin_lt_current)
- else
-- plugin_dir = join_paths(libdir, 'fwupd-plugins-@0@'.format(libfwupdplugin_lt_current))
-+ plugin_dir = join_paths(bindir, '..', 'lib', 'fwupd-plugins-@0@'.format(libfwupdplugin_lt_current))
- endif
- conf.set_quoted('FWUPD_PLUGINDIR', plugin_dir)
- endif