mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 00:08:07 +02:00
Merge pull request #11216 from tomberek/tomberek.add_flake_headers
fix: add flake headers
This commit is contained in:
commit
4c007bf88f
3 changed files with 16 additions and 0 deletions
10
src/libflake/flake/nix-flake.pc.in
Normal file
10
src/libflake/flake/nix-flake.pc.in
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
prefix=@prefix@
|
||||||
|
libdir=@libdir@
|
||||||
|
includedir=@includedir@
|
||||||
|
|
||||||
|
Name: Nix
|
||||||
|
Description: Nix Package Manager
|
||||||
|
Version: @PACKAGE_VERSION@
|
||||||
|
Requires: nix-util nix-store nix-expr
|
||||||
|
Libs: -L${libdir} -lnixflake
|
||||||
|
Cflags: -I${includedir}/nix -std=c++2a
|
|
@ -15,3 +15,8 @@ libflake_CXXFLAGS += $(INCLUDE_libutil) $(INCLUDE_libstore) $(INCLUDE_libfetcher
|
||||||
libflake_LDFLAGS += $(THREAD_LDFLAGS)
|
libflake_LDFLAGS += $(THREAD_LDFLAGS)
|
||||||
|
|
||||||
libflake_LIBS = libutil libstore libfetchers libexpr
|
libflake_LIBS = libutil libstore libfetchers libexpr
|
||||||
|
|
||||||
|
$(eval $(call install-file-in, $(buildprefix)$(d)/flake/nix-flake.pc, $(libdir)/pkgconfig, 0644))
|
||||||
|
|
||||||
|
$(foreach i, $(wildcard src/libflake/flake/*.hh), \
|
||||||
|
$(eval $(call install-file-in, $(i), $(includedir)/nix/flake, 0644)))
|
||||||
|
|
|
@ -20,6 +20,7 @@ deps_private_maybe_subproject = [
|
||||||
dependency('nix-util'),
|
dependency('nix-util'),
|
||||||
dependency('nix-store'),
|
dependency('nix-store'),
|
||||||
dependency('nix-expr'),
|
dependency('nix-expr'),
|
||||||
|
dependency('nix-flake'),
|
||||||
dependency('nix-fetchers'),
|
dependency('nix-fetchers'),
|
||||||
dependency('nix-main'),
|
dependency('nix-main'),
|
||||||
dependency('nix-cmd'),
|
dependency('nix-cmd'),
|
||||||
|
|
Loading…
Reference in a new issue