2016-06-19 09:04:45 +02:00
|
|
|
{ stdenv, fetchFromGitHub, perl, perlPackages, buildPerlPackage }:
|
2011-06-14 17:15:34 +02:00
|
|
|
|
2011-06-14 17:55:11 +02:00
|
|
|
assert stdenv ? glibc;
|
|
|
|
|
2016-06-19 09:04:45 +02:00
|
|
|
buildPerlPackage rec {
|
2013-10-30 11:40:53 +01:00
|
|
|
name = "ninka-${version}";
|
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
|
|
|
};
|
|
|
|
|
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";
|
2017-08-01 22:03:30 +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
|
|
|
};
|
|
|
|
}
|