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