2016-06-19 07:04:45 +00:00
|
|
|
{ stdenv, fetchFromGitHub, perl, perlPackages, buildPerlPackage }:
|
2011-06-14 15:15:34 +00:00
|
|
|
|
2011-06-14 15:55:11 +00:00
|
|
|
assert stdenv ? glibc;
|
|
|
|
|
2016-06-19 07:04:45 +00:00
|
|
|
buildPerlPackage rec {
|
2013-10-30 10:40:53 +00:00
|
|
|
name = "ninka-${version}";
|
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
|
|
|
};
|
|
|
|
|
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
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2011-06-14 15:15:34 +00:00
|
|
|
description = "A sentence based license detector";
|
2017-08-01 20:03:30 +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
|
|
|
};
|
|
|
|
}
|