mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 18:13:42 +08:00 
			
		
		
		
	Replaces uses of the github.com/mitchellh/mapstructure module, which was deprecated by the owner and moved to new maintainership at github.com/go-viper/mapstructure. The old module is still referenced as indirect dependency (through docker/cli and theupdateframework/notary), but not used in code, and should eventually go away. full diff: https://github.com/compose-spec/compose-go/compare/v2.1.1...v2.1.2 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
		
			
				
	
	
		
			40 lines
		
	
	
		
			973 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			973 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  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;
 | 
						|
            };
 | 
						|
 | 
						|
            pre-commit.hooks = {
 | 
						|
              nixpkgs-fmt.enable = true;
 | 
						|
            };
 | 
						|
 | 
						|
            packages = with pkgs; [
 | 
						|
              golangci-lint
 | 
						|
            ];
 | 
						|
 | 
						|
            # https://github.com/cachix/devenv/issues/528#issuecomment-1556108767
 | 
						|
            containers = pkgs.lib.mkForce { };
 | 
						|
          };
 | 
						|
 | 
						|
          ci = devenv.shells.default;
 | 
						|
        };
 | 
						|
      };
 | 
						|
    };
 | 
						|
}
 |