2024-07-27 06:49:29 +00:00
|
|
|
{ lib, fetchFromGitHub, perl, perlPackages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
perlPackages.buildPerlPackage {
|
|
|
|
pname = "ninka";
|
|
|
|
version = "2.0-pre";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dmgerman";
|
|
|
|
repo = "ninka";
|
|
|
|
rev = "b89b59ecd057dfc939d0c75acaddebb58fcd8cba";
|
|
|
|
sha256 = "1grlis1kycbcjvjgqvn7aw81q1qx49ahvxg2k7cgyr79mvgpgi9m";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = with perlPackages; [ perl TestOutput DBDSQLite DBI TestPod TestPodCoverage SpreadsheetParseExcel ];
|
|
|
|
|
|
|
|
doCheck = false; # hangs
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i.bak -e 's;#!/usr/bin/perl;#!${perl}/bin/perl;g' \
|
|
|
|
./bin/ninka-excel ./bin/ninka ./bin/ninka-sqlite \
|
|
|
|
./scripts/unify.pl ./scripts/parseLicense.pl \
|
|
|
|
./scripts/license_matcher_modified.pl \
|
|
|
|
./scripts/sort_package_license_list.pl
|
|
|
|
perl Makefile.PL
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Sentence based license detector";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ninka";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://ninka.turingmachine.org/";
|
|
|
|
license = licenses.gpl2;
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|