rustPackages.rls: Fix 1.55 build on Darwin (#140232)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
main
John Wiegley 3 years ago committed by GitHub
parent 5ecc999aa9
commit 96c0f7e4dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkgs/development/compilers/rust/1_45.nix
  2. 2
      pkgs/development/compilers/rust/1_55.nix
  3. 4
      pkgs/development/compilers/rust/default.nix
  4. 4
      pkgs/development/compilers/rust/rls/default.nix
  5. 4
      pkgs/top-level/all-packages.nix

@ -10,7 +10,7 @@
{ stdenv, lib
, buildPackages
, newScope, callPackage
, CoreFoundation, Security
, CoreFoundation, Security, SystemConfiguration
, pkgsBuildTarget, pkgsBuildBuild, pkgsBuildHost
, makeRustPlatform
, llvmPackages_5, llvm_10

@ -12,7 +12,7 @@
{ stdenv, lib
, buildPackages
, newScope, callPackage
, CoreFoundation, Security
, CoreFoundation, Security, SystemConfiguration
, pkgsBuildTarget, pkgsBuildBuild, pkgsBuildHost
, makeRustPlatform
, llvmPackages_11

@ -14,7 +14,7 @@
{ stdenv, lib
, buildPackages
, newScope, callPackage
, CoreFoundation, Security
, CoreFoundation, Security, SystemConfiguration
, pkgsBuildTarget, pkgsBuildBuild
, makeRustPlatform
}: rec {
@ -104,7 +104,7 @@
inherit CoreFoundation Security;
};
clippy = self.callPackage ./clippy.nix { inherit Security; };
rls = self.callPackage ./rls { inherit CoreFoundation Security; };
rls = self.callPackage ./rls { inherit CoreFoundation Security SystemConfiguration; };
});
};
}

@ -1,6 +1,6 @@
{ lib, stdenv, makeWrapper, fetchFromGitHub, rustPlatform
, openssh, openssl, pkg-config, cmake, zlib, curl, libiconv
, CoreFoundation, Security }:
, CoreFoundation, Security, SystemConfiguration }:
rustPlatform.buildRustPackage rec {
pname = "rls";
@ -30,7 +30,7 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkg-config cmake makeWrapper ];
buildInputs = [ openssh openssl curl zlib libiconv rustPlatform.rust.rustc.llvm ]
++ (lib.optionals stdenv.isDarwin [ CoreFoundation Security ]);
++ lib.optionals stdenv.isDarwin [ CoreFoundation Security SystemConfiguration ];
doCheck = true;

@ -12407,11 +12407,11 @@ with pkgs;
#
# So this commit doesn't remove the 1.45.2 release.
rust_1_45 = callPackage ../development/compilers/rust/1_45.nix {
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security SystemConfiguration;
llvm_10 = llvmPackages_10.libllvm;
};
rust_1_55 = callPackage ../development/compilers/rust/1_55.nix {
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security SystemConfiguration;
llvm_12 = llvmPackages_12.libllvm;
};
rust = rust_1_55;

Loading…
Cancel
Save