summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2020-12-20 17:49:21 +0100
committerGitHub <noreply@github.com>2020-12-20 17:49:21 +0100
commit0e811b67429eb93f913339cb4f272e0686d19773 (patch)
treedc6bf404ee73d11638c9d13a38e6e057543ffb59 /pkgs/tools/system
parent42f4fa575ffd1e9509702db64b79505d29e79a56 (diff)
downloadnixpkgs-0e811b67429eb93f913339cb4f272e0686d19773.tar
nixpkgs-0e811b67429eb93f913339cb4f272e0686d19773.tar.gz
nixpkgs-0e811b67429eb93f913339cb4f272e0686d19773.tar.bz2
nixpkgs-0e811b67429eb93f913339cb4f272e0686d19773.tar.lz
nixpkgs-0e811b67429eb93f913339cb4f272e0686d19773.tar.xz
nixpkgs-0e811b67429eb93f913339cb4f272e0686d19773.tar.zst
nixpkgs-0e811b67429eb93f913339cb4f272e0686d19773.zip
daemon: Fix compilation on darwin (#105640)
Co-authored-by: Matthew Bauer <mjbauer95@gmail.com>
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/daemon/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/tools/system/daemon/default.nix b/pkgs/tools/system/daemon/default.nix
index 29f976998d5..c419824f969 100644
--- a/pkgs/tools/system/daemon/default.nix
+++ b/pkgs/tools/system/daemon/default.nix
@@ -9,7 +9,11 @@ stdenv.mkDerivation rec {
     sha256 = "0b17zzl7bqnkn7a4pr3l6fxqfmxfld7izphrab5nvhc4wzng4spn";
   };
 
-  makeFlags = [ "PREFIX=$(out)" ];
+  makeFlags = [
+    "PREFIX=$(out)"
+    "CC=${stdenv.cc.targetPrefix}cc"
+  ];
+
   buildInputs = [ perl ];
 
   meta = with stdenv.lib; {