Commit 697fd9a8 authored by Weijia Wang's avatar Weijia Wang
Browse files

rtx: fix build on darwin

parent 2f3eae38
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@
, openssl
, direnv
, Security
, SystemConfiguration
}:

rustPlatform.buildRustPackage rec {
@@ -26,7 +27,7 @@ rustPlatform.buildRustPackage rec {
  cargoHash = "sha256-n/GxC5wDfhPboynFu8S1f9+kNDVmcKoSHaT96khyi2Q=";

  nativeBuildInputs = [ installShellFiles pkg-config ];
  buildInputs = [ openssl  ] ++ lib.optionals stdenv.isDarwin [ Security ];
  buildInputs = [ openssl  ] ++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];

  postPatch = ''
    patchShebangs --build ./test/data/plugins/**/bin/* ./src/fake_asdf.rs ./src/cli/reshim.rs
+1 −1
Original line number Diff line number Diff line
@@ -18452,7 +18452,7 @@ with pkgs;
  asdf-vm = callPackage ../tools/misc/asdf-vm { };
  rtx = callPackage ../tools/misc/rtx {
    inherit (darwin.apple_sdk.frameworks) Security;
    inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
  };
  ### DEVELOPMENT / TOOLS