Person/Jan-Erik Rediger/TIL/Nix/minimal flake for a shell
A minimal flake for a shell — TIL
- Author: Person/Jan-Erik Rediger
- Source: fnordig.de TIL
Flake (minimal dev shell)
{ description = "A very basic flake"; outputs = { self, nixpkgs, ... }: let supportedSystems = [ "aarch64-linux" "aarch64-darwin" "x86_64-darwin" "x86_64-linux" ]; forAllSystems = nixpkgs.lib.genAttrs supportedSystems; in { devShells = forAllSystems (system: let pkgs = nixpkgs.legacyPackages.${system}; in { default = pkgs.mkShell { buildInputs = with pkgs; [ ripgrep ]; }; }); }; }- Run with:
nix develop
Old way (shell.nix)