Keep an eye on those revision descriptions.
1{
2 description = "A flake for developing a jj-log.nvim plugin";
3
4 # Flake inputs
5 inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1"; # unstable Nixpkgs
6
7 # Flake outputs
8 outputs =
9 { self, ... }@inputs:
10
11 let
12 # The systems supported for this flake
13 supportedSystems = [
14 "x86_64-linux" # 64-bit Intel/AMD Linux
15 "aarch64-linux" # 64-bit ARM Linux
16 "x86_64-darwin" # 64-bit Intel macOS
17 "aarch64-darwin" # 64-bit ARM macOS
18 ];
19
20 # Helper to provide system-specific attributes
21 forEachSupportedSystem =
22 f:
23 inputs.nixpkgs.lib.genAttrs supportedSystems (
24 system:
25 f {
26 pkgs = import inputs.nixpkgs { inherit system; };
27 }
28 );
29 in
30 {
31 devShells = forEachSupportedSystem (
32 { pkgs }:
33 {
34 default = pkgs.mkShellNoCC {
35 packages = with pkgs; [
36 neovim # of course you need an instance of Neovim
37 ];
38 };
39 }
40 );
41 };
42}