chore: unified flake across my projects

This commit is contained in:
Muhammad Nauman Raza 2024-03-21 22:00:14 +00:00
parent a51d56d5a0
commit 0d998c83fa
Signed by: devraza
GPG key ID: 91EAD6081011574B
2 changed files with 13 additions and 11 deletions

View file

@ -8,11 +8,11 @@
"rust-analyzer-src": "rust-analyzer-src" "rust-analyzer-src": "rust-analyzer-src"
}, },
"locked": { "locked": {
"lastModified": 1710224545, "lastModified": 1710483719,
"narHash": "sha256-MPWVGujXzLd+Q/1M252ZoPMubHhlfaQqhSaJXphDAdE=", "narHash": "sha256-Ev/hJ59IAA3dWfTB3CWxMv/V/owO1yKyq0nwsek/d9o=",
"owner": "nix-community", "owner": "nix-community",
"repo": "fenix", "repo": "fenix",
"rev": "12222a90a7e02443f822e679055858d786e7324f", "rev": "d0439c495e5cd13ff252ade520ca620f52abb40b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -23,11 +23,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1709961763, "lastModified": 1710272261,
"narHash": "sha256-6H95HGJHhEZtyYA3rIQpvamMKAGoa8Yh2rFV29QnuGw=", "narHash": "sha256-g0bDwXFmTE7uGDOs9HcJsfLFhH7fOsASbAuOzDC+fhQ=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3030f185ba6a4bf4f18b87f345f104e6a6961f34", "rev": "0ad13a6833440b8e238947e47bea7f11071dc2b2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -47,11 +47,11 @@
"rust-analyzer-src": { "rust-analyzer-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1710167852, "lastModified": 1710430493,
"narHash": "sha256-SxUgXoPi5+Y6oBNoUt6cNd8HwV2H2JUGNydsp0cgB2M=", "narHash": "sha256-KfmUsf/d62ANcFhSTR3BDIpk2ww0AcxXdi9lpZJ5UtQ=",
"owner": "rust-lang", "owner": "rust-lang",
"repo": "rust-analyzer", "repo": "rust-analyzer",
"rev": "03d2d9016d171c400f0891c867ea0aca9ec4f972", "rev": "14558af15ee3d471bf8f4212f7609ae1f9647bc5",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -42,9 +42,11 @@
# Used by `nix develop` # Used by `nix develop`
devShells.default = pkgs.mkShell rec { devShells.default = pkgs.mkShell rec {
buildInputs = with toolchain; [ buildInputs = with pkgs; [
cargo rustc rust-src clippy rustfmt # rust components (with toolchain; [ cargo rustc rust-src clippy rustfmt ])
mold clang
]; ];
# Specify the rust-src path (many editors rely on this) # Specify the rust-src path (many editors rely on this)
RUST_SRC_PATH = "${toolchain.rust-src}/lib/rustlib/src/rust/library"; RUST_SRC_PATH = "${toolchain.rust-src}/lib/rustlib/src/rust/library";
}; };