From 4ea464b7fb0cef81f329e92dd8fb04aa3d2f8006 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Thu, 21 Mar 2024 22:00:14 +0000 Subject: [PATCH] chore: unified flake across my projects --- flake.lock | 18 +++++++++--------- flake.nix | 6 ++++-- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/flake.lock b/flake.lock index 24fa4d9..ac72795 100644 --- a/flake.lock +++ b/flake.lock @@ -8,11 +8,11 @@ "rust-analyzer-src": "rust-analyzer-src" }, "locked": { - "lastModified": 1710224545, - "narHash": "sha256-MPWVGujXzLd+Q/1M252ZoPMubHhlfaQqhSaJXphDAdE=", + "lastModified": 1710483719, + "narHash": "sha256-Ev/hJ59IAA3dWfTB3CWxMv/V/owO1yKyq0nwsek/d9o=", "owner": "nix-community", "repo": "fenix", - "rev": "12222a90a7e02443f822e679055858d786e7324f", + "rev": "d0439c495e5cd13ff252ade520ca620f52abb40b", "type": "github" }, "original": { @@ -23,11 +23,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1709961763, - "narHash": "sha256-6H95HGJHhEZtyYA3rIQpvamMKAGoa8Yh2rFV29QnuGw=", + "lastModified": 1710272261, + "narHash": "sha256-g0bDwXFmTE7uGDOs9HcJsfLFhH7fOsASbAuOzDC+fhQ=", "owner": "nixos", "repo": "nixpkgs", - "rev": "3030f185ba6a4bf4f18b87f345f104e6a6961f34", + "rev": "0ad13a6833440b8e238947e47bea7f11071dc2b2", "type": "github" }, "original": { @@ -47,11 +47,11 @@ "rust-analyzer-src": { "flake": false, "locked": { - "lastModified": 1710167852, - "narHash": "sha256-SxUgXoPi5+Y6oBNoUt6cNd8HwV2H2JUGNydsp0cgB2M=", + "lastModified": 1710430493, + "narHash": "sha256-KfmUsf/d62ANcFhSTR3BDIpk2ww0AcxXdi9lpZJ5UtQ=", "owner": "rust-lang", "repo": "rust-analyzer", - "rev": "03d2d9016d171c400f0891c867ea0aca9ec4f972", + "rev": "14558af15ee3d471bf8f4212f7609ae1f9647bc5", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 4947d1d..675a5eb 100644 --- a/flake.nix +++ b/flake.nix @@ -42,9 +42,11 @@ # Used by `nix develop` devShells.default = pkgs.mkShell rec { - buildInputs = with toolchain; [ - cargo rustc rust-src clippy rustfmt # rust components + buildInputs = with pkgs; [ + (with toolchain; [ cargo rustc rust-src clippy rustfmt ]) + mold clang ]; + # Specify the rust-src path (many editors rely on this) RUST_SRC_PATH = "${toolchain.rust-src}/lib/rustlib/src/rust/library"; };