about summary refs log tree commit diff
path: root/src/libmain
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmain')
-rw-r--r--src/libmain/local.mk2
-rw-r--r--src/libmain/nix-main.pc.in9
2 files changed, 11 insertions, 0 deletions
diff --git a/src/libmain/local.mk b/src/libmain/local.mk
index 71a07d1979ab..4b6a4767e109 100644
--- a/src/libmain/local.mk
+++ b/src/libmain/local.mk
@@ -9,3 +9,5 @@ libmain_SOURCES := $(wildcard $(d)/*.cc)
 libmain_LIBS = libstore libutil libformat
 
 libmain_ALLOW_UNDEFINED = 1
+
+$(eval $(call install-file-in, $(d)/nix-main.pc, $(libdir)/pkgconfig, 0644))
diff --git a/src/libmain/nix-main.pc.in b/src/libmain/nix-main.pc.in
new file mode 100644
index 000000000000..de1bdf706f72
--- /dev/null
+++ b/src/libmain/nix-main.pc.in
@@ -0,0 +1,9 @@
+prefix=@prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: Nix
+Description: Nix Package Manager
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -lnixmain
+Cflags: -I${includedir}/nix