mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-19 16:58:55 +00:00
Add clippy to flake
This commit is contained in:
parent
17e59e7135
commit
1a6039aa94
1 changed files with 5 additions and 12 deletions
17
flake.nix
17
flake.nix
|
@ -32,22 +32,15 @@
|
||||||
# `nix develop`
|
# `nix develop`
|
||||||
devShell = pkgs.mkShell
|
devShell = pkgs.mkShell
|
||||||
{
|
{
|
||||||
buildInputs =
|
inputsFrom = [ packages.youmubot ];
|
||||||
nixpkgs.lib.optionals pkgs.stdenv.isDarwin
|
|
||||||
(with pkgs; [
|
buildInputs = with pkgs; [ rustc rustfmt clippy ];
|
||||||
libiconv
|
|
||||||
darwin.apple_sdk.frameworks.Security
|
|
||||||
])
|
|
||||||
++ (with pkgs; [
|
|
||||||
openssl
|
|
||||||
cargo
|
|
||||||
rustc
|
|
||||||
rustfmt
|
|
||||||
]);
|
|
||||||
|
|
||||||
nativeBuildInputs = nixpkgs.lib.optionals pkgs.stdenv.isLinux (with pkgs; [
|
nativeBuildInputs = nixpkgs.lib.optionals pkgs.stdenv.isLinux (with pkgs; [
|
||||||
pkg-config
|
pkg-config
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
RUST_SRC_PATH = pkgs.rustPlatform.rustLibSrc;
|
||||||
};
|
};
|
||||||
}) // {
|
}) // {
|
||||||
overlays.default = final: prev: {
|
overlays.default = final: prev: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue