diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | src/libexpr/local.mk | 2 | ||||
-rw-r--r-- | src/libexpr/nix-expr.pc.in | 10 | ||||
-rw-r--r-- | src/libmain/local.mk | 2 | ||||
-rw-r--r-- | src/libmain/nix-main.pc.in | 9 | ||||
-rw-r--r-- | src/libstore/local.mk | 2 | ||||
-rw-r--r-- | src/libstore/nix-store.pc.in | 9 |
7 files changed, 35 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index c8a65ad6f458..e420fbf0144f 100644 --- a/.gitignore +++ b/.gitignore @@ -114,6 +114,7 @@ Makefile.config *.so *.dep *~ +*.pc # GNU Global GPATH diff --git a/src/libexpr/local.mk b/src/libexpr/local.mk index 620a03538bcd..6bb15116798a 100644 --- a/src/libexpr/local.mk +++ b/src/libexpr/local.mk @@ -26,3 +26,5 @@ $(d)/lexer-tab.cc $(d)/lexer-tab.hh: $(d)/lexer.l clean-files += $(d)/parser-tab.cc $(d)/parser-tab.hh $(d)/lexer-tab.cc $(d)/lexer-tab.hh dist-files += $(d)/parser-tab.cc $(d)/parser-tab.hh $(d)/lexer-tab.cc $(d)/lexer-tab.hh + +$(eval $(call install-file-in, $(d)/nix-expr.pc, $(libdir)/pkgconfig, 0644)) diff --git a/src/libexpr/nix-expr.pc.in b/src/libexpr/nix-expr.pc.in new file mode 100644 index 000000000000..21b6c38dd133 --- /dev/null +++ b/src/libexpr/nix-expr.pc.in @@ -0,0 +1,10 @@ +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 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 diff --git a/src/libstore/local.mk b/src/libstore/local.mk index 180088d3df8c..024d7dec7275 100644 --- a/src/libstore/local.mk +++ b/src/libstore/local.mk @@ -30,3 +30,5 @@ $(d)/local-store.cc: $(d)/schema.sql.hh $(trace-gen) sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/' < $< > $@ || (rm $@ && exit 1) clean-files += $(d)/schema.sql.hh + +$(eval $(call install-file-in, $(d)/nix-store.pc, $(libdir)/pkgconfig, 0644)) diff --git a/src/libstore/nix-store.pc.in b/src/libstore/nix-store.pc.in new file mode 100644 index 000000000000..3f1a2d83d2f2 --- /dev/null +++ b/src/libstore/nix-store.pc.in @@ -0,0 +1,9 @@ +prefix=@prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: Nix +Description: Nix Package Manager +Version: @PACKAGE_VERSION@ +Libs: -L${libdir} -lnixstore -lnixutil -lnixformat +Cflags: -I${includedir}/nix |