aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-07-08 12:40:54 +0200
committerGitHub <noreply@github.com>2021-07-08 12:40:54 +0200
commit2172e60f7a53a56ff1ce04f3b683fb618fc5d3f7 (patch)
treea00b7d7ec683601412aa2915e78af29e7c564f97 /misc
parent156666de3da4a754582259bcc2fe68018ed2d3a5 (diff)
parent4f80464645e4c8e7ca9455fc53cc76dc50f688ed (diff)
Merge pull request #4935 from alyssais/host_os
Apply OS checks to host platform, not build
Diffstat (limited to 'misc')
-rw-r--r--misc/launchd/local.mk2
-rw-r--r--misc/systemd/local.mk2
-rw-r--r--misc/upstart/local.mk2
3 files changed, 3 insertions, 3 deletions
diff --git a/misc/launchd/local.mk b/misc/launchd/local.mk
index 0ba722efb..a39188fe6 100644
--- a/misc/launchd/local.mk
+++ b/misc/launchd/local.mk
@@ -1,4 +1,4 @@
-ifeq ($(OS), Darwin)
+ifdef HOST_DARWIN
$(eval $(call install-data-in, $(d)/org.nixos.nix-daemon.plist, $(prefix)/Library/LaunchDaemons))
diff --git a/misc/systemd/local.mk b/misc/systemd/local.mk
index 785db52a4..1fa037485 100644
--- a/misc/systemd/local.mk
+++ b/misc/systemd/local.mk
@@ -1,4 +1,4 @@
-ifeq ($(OS), Linux)
+ifdef HOST_LINUX
$(foreach n, nix-daemon.socket nix-daemon.service, $(eval $(call install-file-in, $(d)/$(n), $(prefix)/lib/systemd/system, 0644)))
diff --git a/misc/upstart/local.mk b/misc/upstart/local.mk
index 5071676dc..2fbfb29b9 100644
--- a/misc/upstart/local.mk
+++ b/misc/upstart/local.mk
@@ -1,4 +1,4 @@
-ifeq ($(OS), Linux)
+ifdef HOST_LINUX
$(foreach n, nix-daemon.conf, $(eval $(call install-file-in, $(d)/$(n), $(sysconfdir)/init, 0644)))