lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 43 lines 1.2 kB view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "licenseclassifier"; 9 version = "2.0.0"; 10 11 src = fetchFromGitHub { 12 owner = "google"; 13 repo = "licenseclassifier"; 14 rev = "v${version}"; 15 hash = "sha256-j+8hX8W0VD0h09Qmu7POnHT8f8+SeG5Si1fI0CDIwuo="; 16 }; 17 18 # The new and improved "License Classifier v2" is hidden in a subdirectory. 19 sourceRoot = "${src.name}/v2"; 20 21 vendorHash = "sha256-u0VR8DCmbZS0MF26Y4HfqtLaGyX2n2INdAidVNbnXPE="; 22 23 ldflags = [ 24 "-s" 25 "-w" 26 ]; 27 28 meta = with lib; { 29 description = "License Classifier"; 30 mainProgram = "identify_license"; 31 longDescription = '' 32 The license classifier can analyze text to determine what type of license 33 it contains. It searches for license texts in a file and compares them to 34 an archive of known licenses. These files could be, e.g., LICENSE files 35 with a single or multiple licenses in it, or source code files with the 36 license text in a comment. 37 ''; 38 homepage = "https://github.com/google/licenseclassifier"; 39 license = licenses.asl20; 40 platforms = platforms.unix; 41 maintainers = with maintainers; [ tnias ]; 42 }; 43}