After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7
    result/bin/apply-formatting $NIXPKGS_PATH
		
	
			
		
			
				
	
	
		
			29 lines
		
	
	
		
			787 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			787 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  lib,
 | 
						|
  stdenv,
 | 
						|
  fetchurl,
 | 
						|
}:
 | 
						|
 | 
						|
stdenv.mkDerivation rec {
 | 
						|
  pname = "libantlr3c";
 | 
						|
  version = "3.4";
 | 
						|
  src = fetchurl {
 | 
						|
    url = "https://www.antlr3.org/download/C/libantlr3c-${version}.tar.gz";
 | 
						|
    sha256 = "0lpbnb4dq4azmsvlhp6khq1gy42kyqyjv8gww74g5lm2y6blm4fa";
 | 
						|
  };
 | 
						|
 | 
						|
  configureFlags =
 | 
						|
    lib.optional stdenv.hostPlatform.is64bit "--enable-64bit"
 | 
						|
    # libantlr3c wrongly emits the abi flags -m64 and -m32 which imply x86 archs
 | 
						|
    # https://github.com/antlr/antlr3/issues/205
 | 
						|
    ++ lib.optional (!stdenv.hostPlatform.isx86) "--disable-abiflags";
 | 
						|
 | 
						|
  meta = with lib; {
 | 
						|
    description = "C runtime libraries of ANTLR v3";
 | 
						|
    homepage = "https://www.antlr3.org/";
 | 
						|
    license = licenses.bsd3;
 | 
						|
    platforms = platforms.unix;
 | 
						|
    maintainers = with maintainers; [ vbgl ];
 | 
						|
  };
 | 
						|
}
 |