2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, perl, perlPackages }:
|
2011-06-14 15:15:34 +00:00
|
|
|
|
2011-06-14 15:55:11 +00:00
|
|
|
assert stdenv ? glibc;
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
perlPackages.buildPerlPackage {
|
2019-06-20 13:07:56 +00:00
|
|
|
pname = "ninka";
|
2016-06-19 07:04:45 +00:00
|
|
|
version = "2.0-pre";
|
2013-10-30 10:40:53 +00:00
|
|
|
|
2016-06-19 07:04:45 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dmgerman";
|
|
|
|
repo = "ninka";
|
|
|
|
rev = "b89b59ecd057dfc939d0c75acaddebb58fcd8cba";
|
|
|
|
sha256 = "1grlis1kycbcjvjgqvn7aw81q1qx49ahvxg2k7cgyr79mvgpgi9m";
|
2011-06-14 15:15:34 +00:00
|
|
|
};
|
2018-10-12 23:10:38 +00:00
|
|
|
|
2016-06-19 07:04:45 +00:00
|
|
|
buildInputs = with perlPackages; [ perl TestOutput DBDSQLite DBI TestPod TestPodCoverage SpreadsheetParseExcel ];
|
2013-10-30 10:40:53 +00:00
|
|
|
|
2016-06-19 07:04:45 +00:00
|
|
|
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
|
2011-06-14 15:15:34 +00:00
|
|
|
'';
|
2016-06-19 07:04:45 +00:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2011-06-14 15:15:34 +00:00
|
|
|
description = "A sentence based license detector";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://ninka.turingmachine.org/";
|
2016-06-19 07:04:45 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.vrthra ];
|
|
|
|
platforms = platforms.all;
|
2011-06-14 15:15:34 +00:00
|
|
|
};
|
|
|
|
}
|