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 57b193d8ddeaf4f5219d2bae1d23b081e4906e57
    result/bin/apply-formatting $NIXPKGS_PATH
		
	
			
		
			
				
	
	
		
			50 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  lib,
 | 
						|
  stdenv,
 | 
						|
  fetchurl,
 | 
						|
  unzip,
 | 
						|
  xorg,
 | 
						|
  libGLU,
 | 
						|
  libGL,
 | 
						|
}:
 | 
						|
 | 
						|
stdenv.mkDerivation rec {
 | 
						|
  pname = "AntTweakBar";
 | 
						|
  version = "1.16";
 | 
						|
 | 
						|
  nativeBuildInputs = [ unzip ];
 | 
						|
  buildInputs = [
 | 
						|
    xorg.libX11
 | 
						|
    libGLU
 | 
						|
    libGL
 | 
						|
  ];
 | 
						|
 | 
						|
  src = fetchurl {
 | 
						|
    url = "mirror://sourceforge/project/anttweakbar/AntTweakBar_${
 | 
						|
      lib.replaceStrings [ "." ] [ "" ] version
 | 
						|
    }.zip";
 | 
						|
    sha256 = "0z3frxpzf54cjs07m6kg09p7nljhr7140f4pznwi7srwq4cvgkpv";
 | 
						|
  };
 | 
						|
 | 
						|
  postPatch = "cd src";
 | 
						|
  installPhase = ''
 | 
						|
    mkdir -p $out/lib/
 | 
						|
    cp ../lib/{libAntTweakBar.so,libAntTweakBar.so.1,libAntTweakBar.a} $out/lib/
 | 
						|
    cp -r ../include $out/
 | 
						|
  '';
 | 
						|
 | 
						|
  meta = {
 | 
						|
    description = "Add a light/intuitive GUI to OpenGL applications";
 | 
						|
    longDescription = ''
 | 
						|
      A small and easy-to-use C/C++ library that allows to quickly add a light
 | 
						|
      and intuitive graphical user interface into graphic applications based on OpenGL
 | 
						|
      (compatibility and core profiles), DirectX 9, DirectX 10 or DirectX 11
 | 
						|
      to interactively tweak parameters on-screen
 | 
						|
    '';
 | 
						|
    homepage = "https://anttweakbar.sourceforge.net/";
 | 
						|
    license = lib.licenses.zlib;
 | 
						|
    maintainers = [ lib.maintainers.razvan ];
 | 
						|
    platforms = lib.platforms.linux;
 | 
						|
  };
 | 
						|
}
 |