about summary refs log tree commit diff
path: root/src/libmain
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-09-18T10·00+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-09-18T10·00+0200
commit8be9990cdb1ce35e1138c9ed477ecfd93ca7f184 (patch)
treeb460ade8a87c833db922c5ca34b98df8d9e60fb1 /src/libmain
parentd64b8e9e53c1087ec611066cfa21261ee2164869 (diff)
Install some pkgconfig files
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