8 pname = "licenseclassifier";
11 src = fetchFromGitHub {
13 repo = "licenseclassifier";
15 hash = "sha256-j+8hX8W0VD0h09Qmu7POnHT8f8+SeG5Si1fI0CDIwuo=";
18 # The new and improved "License Classifier v2" is hidden in a subdirectory.
19 sourceRoot = "${src.name}/v2";
21 vendorHash = "sha256-u0VR8DCmbZS0MF26Y4HfqtLaGyX2n2INdAidVNbnXPE=";
29 description = "License Classifier";
30 mainProgram = "identify_license";
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.
38 homepage = "https://github.com/google/licenseclassifier";
39 license = licenses.asl20;
40 platforms = platforms.unix;
41 maintainers = with maintainers; [ tnias ];