aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
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/libexpr
parent677cf75473d0dd86119c4535d8733a6a0b1100c0 (diff)
parentc97e17144e0d0b666d7b79d8b4b0d581bfdf373b (diff)
Merge "packaging: rename nixexpr -> lixexpr and so on" into main
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/flake/meson.build2
-rw-r--r--src/libexpr/lix-expr.pc.in10
-rw-r--r--src/libexpr/meson.build14
-rw-r--r--src/libexpr/nix-expr.pc.in10
4 files changed, 18 insertions, 18 deletions
diff --git a/src/libexpr/flake/meson.build b/src/libexpr/flake/meson.build
index 3ecc30f4e..cce1b0c75 100644
--- a/src/libexpr/flake/meson.build
+++ b/src/libexpr/flake/meson.build
@@ -4,5 +4,5 @@ libexpr_generated_headers += custom_target(
output : '@PLAINNAME@.gen.hh',
capture : true,
install : true,
- install_dir : includedir / 'nix/flake',
+ install_dir : includedir / 'lix/libexpr/flake',
)
diff --git a/src/libexpr/lix-expr.pc.in b/src/libexpr/lix-expr.pc.in
new file mode 100644
index 000000000..5e850976d
--- /dev/null
+++ b/src/libexpr/lix-expr.pc.in
@@ -0,0 +1,10 @@
+prefix=@prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: Lix libexpr
+Description: Lix Package Manager (libexpr)
+Version: @PACKAGE_VERSION@
+Requires: lix-base lix-util lix-fetchers lix-store bdw-gc
+Libs: -L${libdir} -llixexpr
+Cflags: -I${includedir}/lix/libexpr
diff --git a/src/libexpr/meson.build b/src/libexpr/meson.build
index 099279d56..fda6fde2c 100644
--- a/src/libexpr/meson.build
+++ b/src/libexpr/meson.build
@@ -15,7 +15,7 @@ parser_tab = custom_target(
# NOTE(Qyriad): Meson doesn't support installing only part of a custom target, so we add
# an install script below which removes parser-tab.cc.
install : true,
- install_dir : includedir / 'nix',
+ install_dir : includedir / 'lix/libexpr',
)
lexer_tab = custom_target(
@@ -37,7 +37,7 @@ lexer_tab = custom_target(
# NOTE(Qyriad): Meson doesn't support installing only part of a custom target, so we add
# an install script below which removes lexer-tab.cc.
install : true,
- install_dir : includedir / 'nix',
+ install_dir : includedir / 'lix/libexpr',
)
# TODO(Qyriad): When the parser and lexer are rewritten this should be removed.
@@ -59,7 +59,7 @@ foreach header : [ 'imported-drv-to-derivation.nix', 'fetchurl.nix' ]
output : '@PLAINNAME@.gen.hh',
capture : true,
install : true,
- install_dir : includedir / 'nix',
+ install_dir : includedir / 'lix/libexpr',
)
endforeach
subdir('flake')
@@ -127,7 +127,7 @@ libexpr_headers = files(
)
libexpr = library(
- 'nixexpr',
+ 'lixexpr',
libexpr_sources,
parser_tab,
lexer_tab,
@@ -152,7 +152,7 @@ libexpr = library(
install_headers(
libexpr_headers,
- subdir : 'nix',
+ subdir : 'lix/libexpr',
preserve_path : true,
)
@@ -164,8 +164,8 @@ liblixexpr = declare_dependency(
# 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 : 'nix-expr.pc.in',
- output : 'nix-expr.pc',
+ input : 'lix-expr.pc.in',
+ output : 'lix-expr.pc',
install_dir : libdir / 'pkgconfig',
configuration : {
'prefix' : prefix,
diff --git a/src/libexpr/nix-expr.pc.in b/src/libexpr/nix-expr.pc.in
deleted file mode 100644
index 60ffb5dba..000000000
--- a/src/libexpr/nix-expr.pc.in
+++ /dev/null
@@ -1,10 +0,0 @@
-prefix=@prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: Nix
-Description: Nix Package Manager
-Version: @PACKAGE_VERSION@
-Requires: nix-store bdw-gc
-Libs: -L${libdir} -lnixexpr
-Cflags: -I${includedir}/nix -std=c++2a