depot/third_party/nixpkgs/pkgs/development/tools/misc/ninka/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

36 lines
1 KiB
Nix

{ stdenv, fetchFromGitHub, perl, perlPackages }:
assert stdenv ? glibc;
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 stdenv.lib; {
description = "A sentence based license detector";
homepage = "http://ninka.turingmachine.org/";
license = licenses.gpl2;
maintainers = [ maintainers.vrthra ];
platforms = platforms.all;
};
}