...

Text file src/github.com/sagikazarmark/locafero/flake.nix

Documentation: github.com/sagikazarmark/locafero

     1{
     2  description = "Finder library for Afero";
     3
     4  inputs = {
     5    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
     6    flake-parts.url = "github:hercules-ci/flake-parts";
     7    devenv.url = "github:cachix/devenv";
     8  };
     9
    10  outputs = inputs@{ flake-parts, ... }:
    11    flake-parts.lib.mkFlake { inherit inputs; } {
    12      imports = [
    13        inputs.devenv.flakeModule
    14      ];
    15
    16      systems = [ "x86_64-linux" "aarch64-darwin" ];
    17
    18      perSystem = { config, self', inputs', pkgs, system, ... }: rec {
    19        devenv.shells = {
    20          default = {
    21            languages = {
    22              go.enable = true;
    23            };
    24
    25            packages = with pkgs; [
    26              just
    27
    28              golangci-lint
    29            ];
    30
    31            # https://github.com/cachix/devenv/issues/528#issuecomment-1556108767
    32            containers = pkgs.lib.mkForce { };
    33          };
    34
    35          ci = devenv.shells.default;
    36
    37          ci_1_20 = {
    38            imports = [ devenv.shells.ci ];
    39
    40            languages = {
    41              go.package = pkgs.go_1_20;
    42            };
    43          };
    44        };
    45      };
    46    };
    47}

View as plain text