rye: format with nixfmt
This commit is contained in:
parent
9e85808301
commit
b2ec32e8ba
@ -1,14 +1,21 @@
|
|||||||
{ lib
|
{
|
||||||
, rustPlatform
|
lib,
|
||||||
, fetchFromGitHub
|
rustPlatform,
|
||||||
, installShellFiles
|
fetchFromGitHub,
|
||||||
, pkg-config
|
|
||||||
, openssl
|
# nativeBuildInputs
|
||||||
, stdenv
|
installShellFiles,
|
||||||
, darwin
|
pkg-config,
|
||||||
, nix-update-script
|
|
||||||
, testers
|
# buildInputs
|
||||||
, rye
|
openssl,
|
||||||
|
stdenv,
|
||||||
|
darwin,
|
||||||
|
|
||||||
|
# passthru
|
||||||
|
nix-update-script,
|
||||||
|
testers,
|
||||||
|
rye,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
@ -34,16 +41,21 @@ rustPlatform.buildRustPackage rec {
|
|||||||
OPENSSL_NO_VENDOR = 1;
|
OPENSSL_NO_VENDOR = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles pkg-config ];
|
nativeBuildInputs = [
|
||||||
|
installShellFiles
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs =
|
||||||
openssl
|
[ openssl ]
|
||||||
]
|
++ lib.optionals stdenv.isDarwin (
|
||||||
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk; [
|
with darwin.apple_sdk;
|
||||||
frameworks.CoreServices
|
[
|
||||||
frameworks.SystemConfiguration
|
frameworks.CoreServices
|
||||||
Libsystem
|
frameworks.SystemConfiguration
|
||||||
]);
|
Libsystem
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion --cmd rye \
|
installShellCompletion --cmd rye \
|
||||||
|
Loading…
Reference in New Issue
Block a user