2011-06-14 15:15:34 +00:00
|
|
|
{stdenv, fetchgit, perl}:
|
|
|
|
|
2011-06-14 15:55:11 +00:00
|
|
|
assert stdenv ? glibc;
|
|
|
|
|
2011-06-14 15:15:34 +00:00
|
|
|
let
|
|
|
|
rev = "7a9a5c48ede207eec881";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ninka-"+rev;
|
|
|
|
src = fetchgit {
|
|
|
|
url = http://github.com/dmgerman/ninka.git;
|
|
|
|
inherit rev;
|
|
|
|
sha256 = "3e877fadf074b9c5abfe36ff10b7e332423d1d4c5b17accc5586c7cffdb2c7dd";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
|
2011-06-15 12:04:31 +00:00
|
|
|
buildPhase = ''
|
|
|
|
cd comments
|
|
|
|
tar xfvz comments.tar.gz
|
|
|
|
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 15:15:34 +00:00
|
|
|
installPhase = ''
|
2011-06-15 12:04:31 +00:00
|
|
|
cd ../..
|
2011-06-14 15:15:34 +00:00
|
|
|
ensureDir $out/bin
|
|
|
|
cp ninka.pl $out/bin
|
|
|
|
cp -av {extComments,splitter,filter,senttok,matcher} $out/bin
|
|
|
|
|
2011-06-15 12:04:31 +00:00
|
|
|
cd comments/comments
|
2011-06-14 15:15:34 +00:00
|
|
|
ensureDir $out/{bin,share/man/man1}
|
2011-06-15 12:04:31 +00:00
|
|
|
make install
|
2011-06-14 15:15:34 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
license = "AGPLv3+";
|
|
|
|
description = "A sentence based license detector";
|
|
|
|
};
|
|
|
|
}
|