3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/misc/ninka/default.nix
2013-10-30 11:47:12 +01:00

35 lines
785 B
Nix

{ stdenv, fetchurl, perl }:
assert stdenv ? glibc;
stdenv.mkDerivation rec {
name = "ninka-${version}";
version = "1.1";
src = fetchurl {
url = "https://github.com/dmgerman/ninka/archive/${version}.tar.gz";
sha256 = "1cvbsmanw3i9igiafpx0ghg658c37riw56mjk5vsgpmnn3flvhib";
};
buildInputs = [ perl ];
buildPhase = ''
cd comments
sed -i -e "s|/usr/local/bin|$out/bin|g" -e "s|/usr/local/man|$out/share/man|g" Makefile
make
'';
installPhase = ''
mkdir -p $out/{bin,share/man/man1}
make install
cp -a ../{ninka.pl,extComments,splitter,filter,senttok,matcher} $out/bin
'';
meta = {
description = "A sentence based license detector";
homepage = "http://ninka.turingmachine.org/";
license = "AGPLv3+";
};
}