mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-28 22:02:24 -05:00
- codeberg.org/gruf/go-ffmpreg: v0.6.10 -> v0.6.11 - github.com/spf13/cast: v1.9.2 -> v1.10.0 - github.com/spf13/viper: v1.20.1 -> v1.21.0 - golang.org/x/crypto: v0.41.0 -> v0.42.0 - golang.org/x/image: v0.30.0 -> v0.31.0 Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4423 Co-authored-by: kim <grufwub@gmail.com> Co-committed-by: kim <grufwub@gmail.com>
61 lines
1.3 KiB
Nix
61 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 =
|
|
{ pkgs, ... }:
|
|
{
|
|
devenv.shells = {
|
|
default = {
|
|
languages = {
|
|
go.enable = true;
|
|
};
|
|
|
|
git-hooks.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 { };
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|