From 2596df2322da9b1c7998a5aa6fe9019fb7299d5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Fri, 12 Feb 2021 10:45:00 +0100 Subject: [PATCH] maturin: take Security as an argument, rather than darwin --- pkgs/development/tools/rust/maturin/default.nix | 6 ++---- pkgs/top-level/all-packages.nix | 5 ++++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/development/tools/rust/maturin/default.nix b/pkgs/development/tools/rust/maturin/default.nix index fec5ead5d42..c9513864086 100644 --- a/pkgs/development/tools/rust/maturin/default.nix +++ b/pkgs/development/tools/rust/maturin/default.nix @@ -1,9 +1,7 @@ { lib, stdenv, fetchFromGitHub, rustPlatform, dbus, gmp, openssl, pkg-config -, darwin }: +, Security }: -let - inherit (darwin.apple_sdk.frameworks) Security; -in rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage rec { pname = "maturin"; version = "0.9.0"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bef22c21e98..35ccb876bad 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10833,7 +10833,10 @@ in inherit (darwin.apple_sdk.frameworks) Security; }; - maturin = callPackage ../development/tools/rust/maturin { }; + maturin = callPackage ../development/tools/rust/maturin { + inherit (darwin.apple_sdk.frameworks) Security; + }; + inherit (rustPackages) rls; rustfmt = rustPackages.rustfmt; rustracer = callPackage ../development/tools/rust/racer {