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