2016-02-09 20:28:29 +00:00
|
|
|
programs += nix
|
|
|
|
|
|
|
|
nix_DIR := $(d)
|
|
|
|
|
2018-10-26 09:35:46 +00: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-prefetch-url/*.cc) \
|
|
|
|
$(wildcard src/nix-store/*.cc) \
|
2016-02-09 20:28:29 +00:00
|
|
|
|
2020-03-30 12:29:29 +00:00
|
|
|
nix_CXXFLAGS += -I src/libutil -I src/libstore -I src/libfetchers -I src/libexpr -I src/libmain
|
|
|
|
|
2020-03-30 12:03:28 +00:00
|
|
|
nix_LIBS = libexpr libmain libfetchers libstore libutil libnixrust
|
2016-02-09 20:28:29 +00:00
|
|
|
|
2019-07-03 00:47:27 +00:00
|
|
|
nix_LDFLAGS = -pthread $(SODIUM_LIBS) $(EDITLINE_LIBS) $(BOOST_LDFLAGS) -lboost_context -lboost_thread -lboost_system
|
2018-02-06 19:51:37 +00:00
|
|
|
|
2018-10-26 09:35:46 +00:00
|
|
|
$(foreach name, \
|
2018-10-26 17:38:06 +00: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 09:35:46 +00:00
|
|
|
$(eval $(call install-symlink, nix, $(bindir)/$(name))))
|
|
|
|
$(eval $(call install-symlink, $(bindir)/nix, $(libexecdir)/nix/build-remote))
|
2019-04-08 21:39:38 +00:00
|
|
|
|
2020-03-11 23:39:30 +00:00
|
|
|
src/nix-env/user-env.cc: src/nix-env/buildenv.nix.gen.hh
|
2020-03-11 16:03:38 +00:00
|
|
|
|
2020-05-01 09:56:37 +00:00
|
|
|
src/nix/dev-shell.cc: src/nix/get-env.sh.gen.hh
|
|
|
|
|
2019-04-08 21:39:38 +00:00
|
|
|
$(d)/flake.cc: $(d)/flake-template.nix.gen.hh
|