Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
49 lines
1.0 KiB
Nix
49 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
perl,
|
|
perlPackages,
|
|
}:
|
|
|
|
perlPackages.buildPerlPackage {
|
|
pname = "ninka";
|
|
version = "2.0-pre";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dmgerman";
|
|
repo = "ninka";
|
|
rev = "b89b59ecd057dfc939d0c75acaddebb58fcd8cba";
|
|
sha256 = "1grlis1kycbcjvjgqvn7aw81q1qx49ahvxg2k7cgyr79mvgpgi9m";
|
|
};
|
|
|
|
buildInputs = with perlPackages; [
|
|
perl
|
|
TestOutput
|
|
DBDSQLite
|
|
DBI
|
|
TestPod
|
|
TestPodCoverage
|
|
SpreadsheetParseExcel
|
|
];
|
|
|
|
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
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Sentence based license detector";
|
|
mainProgram = "ninka";
|
|
homepage = "http://ninka.turingmachine.org/";
|
|
license = licenses.gpl2;
|
|
maintainers = [ ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|