mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
Merge pull request #112775 from danieldk/maturin-pname
This commit is contained in:
commit
e9b66b96cc
@ -1,26 +1,29 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, rustPlatform, dbus, gmp, openssl, pkg-config
|
{ lib
|
||||||
, darwin }:
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, rustPlatform
|
||||||
|
, pkg-config
|
||||||
|
, dbus
|
||||||
|
, Security
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
rustPlatform.buildRustPackage rec {
|
||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
pname = "maturin";
|
||||||
in rustPlatform.buildRustPackage rec {
|
|
||||||
name = "maturin-${version}";
|
|
||||||
version = "0.9.0";
|
version = "0.9.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "PyO3";
|
owner = "PyO3";
|
||||||
repo = "maturin";
|
repo = "maturin";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-X5/1zEVhhdTuyXcUwC3jVv9Gblmv8LT+ftsVo8BnnZs=";
|
hash = "sha256-X5/1zEVhhdTuyXcUwC3jVv9Gblmv8LT+ftsVo8BnnZs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-PBmuPIpCwC7fr/MKFaeSd/0avoEATlxoeMHisjouAeI=";
|
cargoHash = "sha256-PBmuPIpCwC7fr/MKFaeSd/0avoEATlxoeMHisjouAeI=";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
buildInputs = [ gmp openssl ]
|
buildInputs = lib.optional stdenv.isLinux dbus
|
||||||
++ lib.optional stdenv.isDarwin Security
|
++ lib.optional stdenv.isDarwin Security;
|
||||||
++ lib.optional stdenv.isLinux dbus;
|
|
||||||
|
|
||||||
# Requires network access, fails in sandbox.
|
# Requires network access, fails in sandbox.
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
@ -10840,7 +10840,10 @@ in
|
|||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
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;
|
inherit (rustPackages) rls;
|
||||||
rustfmt = rustPackages.rustfmt;
|
rustfmt = rustPackages.rustfmt;
|
||||||
rustracer = callPackage ../development/tools/rust/racer {
|
rustracer = callPackage ../development/tools/rust/racer {
|
||||||
|
Loading…
Reference in New Issue
Block a user