From 1a6039aa945b0a2a9e2c712264d6a848d7dcf6cf Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Sun, 22 Oct 2023 17:33:20 +0200 Subject: [PATCH] Add clippy to flake --- flake.nix | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/flake.nix b/flake.nix index b98e820..a7f554e 100644 --- a/flake.nix +++ b/flake.nix @@ -32,22 +32,15 @@ # `nix develop` devShell = pkgs.mkShell { - buildInputs = - nixpkgs.lib.optionals pkgs.stdenv.isDarwin - (with pkgs; [ - libiconv - darwin.apple_sdk.frameworks.Security - ]) - ++ (with pkgs; [ - openssl - cargo - rustc - rustfmt - ]); + inputsFrom = [ packages.youmubot ]; + + buildInputs = with pkgs; [ rustc rustfmt clippy ]; nativeBuildInputs = nixpkgs.lib.optionals pkgs.stdenv.isLinux (with pkgs; [ pkg-config ]); + + RUST_SRC_PATH = pkgs.rustPlatform.rustLibSrc; }; }) // { overlays.default = final: prev: {