2016-02-09 22:28:29 +02:00
|
|
|
programs += nix
|
|
|
|
|
|
|
|
nix_DIR := $(d)
|
|
|
|
|
2018-10-26 12:35:46 +03:00
|
|
|
nix_SOURCES := \
|
|
|
|
$(wildcard $(d)/*.cc) \
|
|
|
|
$(wildcard src/build-remote/*.cc) \
|
|
|
|
$(wildcard src/nix-build/*.cc) \
|
|
|
|
$(wildcard src/nix-channel/*.cc) \
|
|
|
|
$(wildcard src/nix-collect-garbage/*.cc) \
|
|
|
|
$(wildcard src/nix-copy-closure/*.cc) \
|
|
|
|
$(wildcard src/nix-daemon/*.cc) \
|
|
|
|
$(wildcard src/nix-env/*.cc) \
|
|
|
|
$(wildcard src/nix-instantiate/*.cc) \
|
|
|
|
$(wildcard src/nix-store/*.cc) \
|
2016-02-09 22:28:29 +02:00
|
|
|
|
2021-09-13 15:41:28 +03:00
|
|
|
nix_CXXFLAGS += -I src/libutil -I src/libstore -I src/libfetchers -I src/libexpr -I src/libmain -I src/libcmd -I doc/manual
|
2020-03-30 15:29:29 +03:00
|
|
|
|
2021-01-26 13:22:24 +02:00
|
|
|
nix_LIBS = libexpr libmain libfetchers libstore libutil libcmd
|
2016-02-09 22:28:29 +02:00
|
|
|
|
2022-11-13 00:04:58 +02:00
|
|
|
nix_LDFLAGS = -pthread $(SODIUM_LIBS) $(EDITLINE_LIBS) $(BOOST_LDFLAGS) $(LOWDOWN_LIBS)
|
2018-02-06 21:51:37 +02:00
|
|
|
|
2018-10-26 12:35:46 +03:00
|
|
|
$(foreach name, \
|
2018-10-26 20:38:06 +03:00
|
|
|
nix-build nix-channel nix-collect-garbage nix-copy-closure nix-daemon nix-env nix-hash nix-instantiate nix-prefetch-url nix-shell nix-store, \
|
2018-10-26 12:35:46 +03:00
|
|
|
$(eval $(call install-symlink, nix, $(bindir)/$(name))))
|
|
|
|
$(eval $(call install-symlink, $(bindir)/nix, $(libexecdir)/nix/build-remote))
|
2020-03-11 17:41:22 +02:00
|
|
|
|
2020-03-12 01:39:30 +02:00
|
|
|
src/nix-env/user-env.cc: src/nix-env/buildenv.nix.gen.hh
|
2020-04-30 14:05:29 +03:00
|
|
|
|
2020-06-04 11:57:40 +03:00
|
|
|
src/nix/develop.cc: src/nix/get-env.sh.gen.hh
|
2020-09-17 10:35:30 +03:00
|
|
|
|
|
|
|
src/nix-channel/nix-channel.cc: src/nix-channel/unpack-channel.nix.gen.hh
|
2021-09-13 15:41:28 +03:00
|
|
|
|
|
|
|
src/nix/main.cc: doc/manual/generate-manpage.nix.gen.hh doc/manual/utils.nix.gen.hh
|