about summary refs log tree commit diff
path: root/pkgs/by-name/cc/ccache/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/cc/ccache/package.nix')
-rw-r--r--pkgs/by-name/cc/ccache/package.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/by-name/cc/ccache/package.nix b/pkgs/by-name/cc/ccache/package.nix
index 9984771b7ce9..25753bd55557 100644
--- a/pkgs/by-name/cc/ccache/package.nix
+++ b/pkgs/by-name/cc/ccache/package.nix
@@ -83,7 +83,7 @@ stdenv.mkDerivation (finalAttrs: {
     # test/run requires the compgen function which is available in
     # bashInteractive, but not bash.
     bashInteractive
-  ] ++ lib.optional stdenv.isDarwin xcodebuild;
+  ] ++ lib.optional stdenv.hostPlatform.isDarwin xcodebuild;
 
   checkInputs = [
     doctest
@@ -95,7 +95,7 @@ stdenv.mkDerivation (finalAttrs: {
         [
           "test.trim_dir" # flaky on hydra (possibly filesystem-specific?)
         ]
-        ++ lib.optionals stdenv.isDarwin [
+        ++ lib.optionals stdenv.hostPlatform.isDarwin [
           "test.basedir"
           "test.fileclone" # flaky on hydra (possibly filesystem-specific?)
           "test.multi_arch"
@@ -122,7 +122,7 @@ stdenv.mkDerivation (finalAttrs: {
           isGNU = unwrappedCC.isGNU or false;
           isCcache = true;
         };
-        inherit (unwrappedCC) lib;
+        lib = lib.getLib unwrappedCC;
         nativeBuildInputs = [ makeWrapper ];
         # Unwrapped clang does not have a targetPrefix because it is multi-target
         # target is decided with argv0.