mirror of
https://github.com/42wim/matterbridge
synced 2024-11-15 06:12:55 +00:00
2f33fe86f5
* Update dependencies and build to go1.22 * Fix api changes wrt to dependencies * Update golangci config
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{
|
|
description = "Finder library for Afero";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
devenv.url = "github:cachix/devenv";
|
|
};
|
|
|
|
outputs = inputs@{ flake-parts, ... }:
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
imports = [
|
|
inputs.devenv.flakeModule
|
|
];
|
|
|
|
systems = [ "x86_64-linux" "aarch64-darwin" ];
|
|
|
|
perSystem = { config, self', inputs', pkgs, system, ... }: rec {
|
|
devenv.shells = {
|
|
default = {
|
|
languages = {
|
|
go.enable = true;
|
|
};
|
|
|
|
packages = with pkgs; [
|
|
just
|
|
|
|
golangci-lint
|
|
];
|
|
|
|
# https://github.com/cachix/devenv/issues/528#issuecomment-1556108767
|
|
containers = pkgs.lib.mkForce { };
|
|
};
|
|
|
|
ci = devenv.shells.default;
|
|
|
|
ci_1_20 = {
|
|
imports = [ devenv.shells.ci ];
|
|
|
|
languages = {
|
|
go.package = pkgs.go_1_20;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|