mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 00:02:20 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			44 lines
		
	
	
		
			895 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			895 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  inputs = {
 | 
						|
    nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
 | 
						|
    flake-utils.url = "github:numtide/flake-utils";
 | 
						|
  };
 | 
						|
  outputs =
 | 
						|
    { nixpkgs, flake-utils, ... }:
 | 
						|
    flake-utils.lib.eachDefaultSystem (
 | 
						|
      system:
 | 
						|
      let
 | 
						|
        pkgs = nixpkgs.legacyPackages.${system};
 | 
						|
      in
 | 
						|
      {
 | 
						|
        devShells.default = pkgs.mkShell {
 | 
						|
          buildInputs = with pkgs; [
 | 
						|
            # generic
 | 
						|
            git
 | 
						|
            git-lfs
 | 
						|
            gnumake
 | 
						|
            gnused
 | 
						|
            gnutar
 | 
						|
            gzip
 | 
						|
 | 
						|
            # frontend
 | 
						|
            nodejs_22
 | 
						|
 | 
						|
            # linting
 | 
						|
            python312
 | 
						|
            poetry
 | 
						|
 | 
						|
            # backend
 | 
						|
            go_1_23
 | 
						|
            gofumpt
 | 
						|
            sqlite
 | 
						|
          ];
 | 
						|
          shellHook = ''
 | 
						|
            export GO="${pkgs.go_1_23}/bin/go"
 | 
						|
            export GOROOT="${pkgs.go_1_23}/share/go"
 | 
						|
          '';
 | 
						|
        };
 | 
						|
      }
 | 
						|
    );
 | 
						|
}
 |