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
		
	
			
		
			
				
	
	
		
			54 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  fetchurl,
 | 
						|
  lib,
 | 
						|
  stdenv,
 | 
						|
  zlib,
 | 
						|
  bzip2,
 | 
						|
}:
 | 
						|
 | 
						|
stdenv.mkDerivation rec {
 | 
						|
  pname = "tokyocabinet";
 | 
						|
  version = "1.4.48";
 | 
						|
 | 
						|
  src = fetchurl {
 | 
						|
    url = "https://dbmx.net/tokyocabinet/${pname}-${version}.tar.gz";
 | 
						|
    sha256 = "140zvr0n8kvsl0fbn2qn3f2kh3yynfwnizn4dgbj47m975yg80x0";
 | 
						|
  };
 | 
						|
 | 
						|
  buildInputs = [
 | 
						|
    zlib
 | 
						|
    bzip2
 | 
						|
  ];
 | 
						|
 | 
						|
  postInstall = ''
 | 
						|
    sed -i "$out/lib/pkgconfig/tokyocabinet.pc" \
 | 
						|
      -e 's|-lz|-L${zlib.out}/lib -lz|g;
 | 
						|
          s|-lbz2|-L${bzip2.out}/lib -lbz2|g'
 | 
						|
  '';
 | 
						|
 | 
						|
  meta = {
 | 
						|
    description = "Tokyo Cabinet: a modern implementation of DBM";
 | 
						|
 | 
						|
    longDescription = ''
 | 
						|
      Tokyo Cabinet is a library of routines for managing a database. The
 | 
						|
      database is a simple data file containing records, each is a pair of
 | 
						|
      a key and a value.  Every key and value is serial bytes with
 | 
						|
      variable length.  Both binary data and character string can be used
 | 
						|
      as a key and a value.  There is neither concept of data tables nor
 | 
						|
      data types.  Records are organized in hash table, B+ tree, or
 | 
						|
      fixed-length array.
 | 
						|
 | 
						|
      Tokyo Cabinet is developed as the successor of GDBM and QDBM on the
 | 
						|
      following purposes.  They are achieved and Tokyo Cabinet replaces
 | 
						|
      conventional DBM products: improves space efficiency, improves time
 | 
						|
      efficiency, improves parallelism, improves usability, improves
 | 
						|
      robustness, supports 64-bit architecture.
 | 
						|
    '';
 | 
						|
 | 
						|
    license = lib.licenses.lgpl2Plus;
 | 
						|
 | 
						|
    maintainers = [ ];
 | 
						|
    platforms = lib.platforms.unix;
 | 
						|
  };
 | 
						|
}
 |