about summary refs log tree commit diff
path: root/nixpkgs/pkgs/os-specific/linux/firmware/fwupd/install-fwupdplugin-to-out.patch
blob: f3369b6e13337f1c1d7fe4b8ae5b825ee9e65fa5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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