summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/default.nix2
-rw-r--r--lib/battery/meson.build6
2 files changed, 5 insertions, 3 deletions
diff --git a/docs/default.nix b/docs/default.nix
index a82117a..3a75834 100644
--- a/docs/default.nix
+++ b/docs/default.nix
@@ -106,7 +106,7 @@ in
installPhase = ''
runHook preInstall
- ${genLib "astal" "" "Astal core library" {
+ ${genLib "astal" "" {
out = "libastal";
description = "Astal core library";
version = ../core/version;
diff --git a/lib/battery/meson.build b/lib/battery/meson.build
index bfb8255..f9751d0 100644
--- a/lib/battery/meson.build
+++ b/lib/battery/meson.build
@@ -32,12 +32,14 @@ config = configure_file(
},
)
-deps = [
+pkgconfig_deps = [
dependency('glib-2.0'),
dependency('gio-2.0'),
dependency('gobject-2.0'),
]
+deps = pkgconfig_deps + meson.get_compiler('c').find_library('m')
+
sources = [
config,
'ifaces.vala',
@@ -64,7 +66,7 @@ if get_option('lib')
filebase: meson.project_name() + '-' + api_version,
version: meson.project_version(),
subdirs: meson.project_name(),
- requires: deps,
+ requires: pkgconfig_deps,
install_dir: get_option('libdir') / 'pkgconfig',
)