A collection of easily useable/reusable nilla shells

feat: add rust shell

authored by thecoded.prof and committed by tangled.org 772aba2a d05ab929

+44
+31
nilla.nix
··· 8 8 { 9 9 config = { 10 10 inputs = { 11 + fenix = { 12 + src = pins.fenix; 13 + }; 11 14 nixpkgs = { 12 15 src = pins.nixpkgs; 16 + 17 + settings.overlays = [ 18 + config.inputs.fenix.result.overlays.default 19 + ]; 13 20 }; 14 21 treefmt-nix = { 15 22 src = pins.treefmt-nix; ··· 75 82 packages = [ 76 83 pkgs.python314 77 84 pkgs.python314Packages.pip 85 + ]; 86 + }; 87 + }; 88 + 89 + shells.rust = { 90 + systems = [ "x86_64-linux" ]; 91 + 92 + shell = 93 + { 94 + bacon, 95 + fenix, 96 + mkShell, 97 + }: 98 + mkShell { 99 + packages = [ 100 + bacon 101 + (fenix.complete.withComponents [ 102 + "cargo" 103 + "clippy" 104 + "rust-src" 105 + "rustc" 106 + "rustfmt" 107 + "rust-analyzer" 108 + ]) 78 109 ]; 79 110 }; 80 111 };
+13
npins/sources.json
··· 1 1 { 2 2 "pins": { 3 + "fenix": { 4 + "type": "Git", 5 + "repository": { 6 + "type": "GitHub", 7 + "owner": "nix-community", 8 + "repo": "fenix" 9 + }, 10 + "branch": "main", 11 + "submodules": false, 12 + "revision": "2e634630daa7f0e1e5c7361f2fd152abed885b54", 13 + "url": "https://github.com/nix-community/fenix/archive/2e634630daa7f0e1e5c7361f2fd152abed885b54.tar.gz", 14 + "hash": "sha256-/wg2AldzzgPCxWpTIq3tRq38+drl68SAsgaJqgRjCH8=" 15 + }, 3 16 "nilla": { 4 17 "type": "Git", 5 18 "repository": {