2013-10-30 11:40:53 +01:00
|
|
|
{ stdenv, fetchurl, perl }:
|
2011-06-14 17:15:34 +02:00
|
|
|
|
2011-06-14 17:55:11 +02:00
|
|
|
assert stdenv ? glibc;
|
|
|
|
|
2013-10-30 11:40:53 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ninka-${version}";
|
|
|
|
version = "1.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/dmgerman/ninka/archive/${version}.tar.gz";
|
|
|
|
sha256 = "1cvbsmanw3i9igiafpx0ghg658c37riw56mjk5vsgpmnn3flvhib";
|
2011-06-14 17:15:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
|
2011-06-15 14:04:31 +02:00
|
|
|
buildPhase = ''
|
|
|
|
cd comments
|
|
|
|
sed -i -e "s|/usr/local/bin|$out/bin|g" -e "s|/usr/local/man|$out/share/man|g" Makefile
|
|
|
|
make
|
|
|
|
'';
|
|
|
|
|
2011-06-14 17:15:34 +02:00
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/{bin,share/man/man1}
|
2011-06-15 14:04:31 +02:00
|
|
|
make install
|
2013-10-30 11:40:53 +01:00
|
|
|
|
|
|
|
cp -a ../{ninka.pl,extComments,splitter,filter,senttok,matcher} $out/bin
|
2011-06-14 17:15:34 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A sentence based license detector";
|
2013-10-30 11:40:53 +01:00
|
|
|
homepage = "http://ninka.turingmachine.org/";
|
|
|
|
license = "AGPLv3+";
|
2011-06-14 17:15:34 +02:00
|
|
|
};
|
|
|
|
}
|