aboutsummaryrefslogtreecommitdiff
path: root/src/libfetchers
diff options
context:
space:
mode:
authorjade <lix@jade.fyi>2024-05-23 23:19:28 +0000
committerGerrit Code Review <gerrit@lix-systems>2024-05-23 23:19:28 +0000
commit9530b7f2b2b653fc11753ce452636896350324ff (patch)
tree837593bceacff5f2760594c5a115242ec63ddca9 /src/libfetchers
parent677cf75473d0dd86119c4535d8733a6a0b1100c0 (diff)
parentc97e17144e0d0b666d7b79d8b4b0d581bfdf373b (diff)
Merge "packaging: rename nixexpr -> lixexpr and so on" into main
Diffstat (limited to 'src/libfetchers')
-rw-r--r--src/libfetchers/lix-fetchers.pc.in10
-rw-r--r--src/libfetchers/meson.build18
2 files changed, 26 insertions, 2 deletions
diff --git a/src/libfetchers/lix-fetchers.pc.in b/src/libfetchers/lix-fetchers.pc.in
new file mode 100644
index 000000000..fa213b769
--- /dev/null
+++ b/src/libfetchers/lix-fetchers.pc.in
@@ -0,0 +1,10 @@
+prefix=@prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: Lix libfetchers
+Description: Lix Package Manager (libfetchers)
+Version: @PACKAGE_VERSION@
+Requires: lix-base lix-util
+Libs: -L${libdir} -llixfetchers
+Cflags: -I${includedir}/lix/libfetchers
diff --git a/src/libfetchers/meson.build b/src/libfetchers/meson.build
index 3809701b7..dbb85b84c 100644
--- a/src/libfetchers/meson.build
+++ b/src/libfetchers/meson.build
@@ -23,7 +23,7 @@ libfetchers_headers = files(
)
libfetchers = library(
- 'nixfetchers',
+ 'lixfetchers',
libfetchers_sources,
dependencies : [
liblixstore,
@@ -35,7 +35,21 @@ libfetchers = library(
install_rpath : libdir,
)
-install_headers(libfetchers_headers, subdir : 'nix', preserve_path : true)
+install_headers(libfetchers_headers, subdir : 'lix/libfetchers', preserve_path : true)
+
+# FIXME: not using the pkg-config module because it creates way too many deps
+# while meson migration is in progress, and we want to not include boost here
+configure_file(
+ input : 'lix-fetchers.pc.in',
+ output : 'lix-fetchers.pc',
+ install_dir : libdir / 'pkgconfig',
+ configuration : {
+ 'prefix' : prefix,
+ 'libdir' : libdir,
+ 'includedir' : includedir,
+ 'PACKAGE_VERSION' : meson.project_version(),
+ },
+)
liblixfetchers = declare_dependency(
include_directories : include_directories('.'),