mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-10 06:55:10 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
36 lines
1.0 KiB
Nix
36 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;
|
|
};
|
|
}
|