mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-21 09:42:11 +00:00
addaba05c0
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.18.2 to 1.19.0. - [Release notes](https://github.com/spf13/viper/releases) - [Commits](https://github.com/spf13/viper/compare/v1.18.2...v1.19.0) --- updated-dependencies: - dependency-name: github.com/spf13/viper dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
58 lines
1.3 KiB
Nix
58 lines
1.3 KiB
Nix
{
|
|
description = "Viper";
|
|
|
|
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" "x86_64-darwin" "aarch64-darwin" ];
|
|
|
|
perSystem = { config, self', inputs', pkgs, system, ... }: rec {
|
|
devenv.shells = {
|
|
default = {
|
|
languages = {
|
|
go.enable = true;
|
|
go.package = pkgs.go_1_22;
|
|
};
|
|
|
|
pre-commit.hooks = {
|
|
nixpkgs-fmt.enable = true;
|
|
yamllint.enable = true;
|
|
};
|
|
|
|
packages = with pkgs; [
|
|
gnumake
|
|
|
|
golangci-lint
|
|
yamllint
|
|
];
|
|
|
|
scripts = {
|
|
versions.exec = ''
|
|
go version
|
|
golangci-lint version
|
|
'';
|
|
};
|
|
|
|
enterShell = ''
|
|
versions
|
|
'';
|
|
|
|
# https://github.com/cachix/devenv/issues/528#issuecomment-1556108767
|
|
containers = pkgs.lib.mkForce { };
|
|
};
|
|
|
|
ci = devenv.shells.default;
|
|
};
|
|
};
|
|
};
|
|
}
|