2019-03-05 11:01:02 +00:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
2012-02-04 10:32:07 +00:00
|
|
|
|
2019-03-05 11:01:02 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "analog-6.0.13";
|
|
|
|
|
|
|
|
buildInputs = [ unzip ];
|
2012-02-04 10:32:07 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-03-05 11:01:02 +00:00
|
|
|
url = "http://www.c-amie.co.uk/static/analog/6013/analog-src-6013ce.zip";
|
|
|
|
sha256 = "1njfsclmxk8sn1i07k3qfk8fmsnz7qw9kmydk3bil7qjf4ngmzc6";
|
2012-02-04 10:32:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
sed -i src/anlghead.h \
|
|
|
|
-e "s|#define DEFAULTCONFIGFILE .*|#define DEFAULTCONFIGFILE \"$out/etc/analog.cfg\"|g" \
|
|
|
|
-e "s|#define LANGDIR .*|#define LANGDIR \"$out/share/${name}/lang/\"|g"
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/etc $out/share/doc/${name} $out/share/man/man1 $out/share/${name}
|
|
|
|
mv analog $out/bin/
|
|
|
|
cp examples/big.cfg $out/etc/analog.cfg
|
|
|
|
mv analog.man $out/share/man/man1/analog.1
|
|
|
|
mv docs $out/share/doc/${name}/manual
|
|
|
|
mv how-to $out/share/doc/${name}/
|
2012-02-04 10:48:48 +00:00
|
|
|
mv lang images examples $out/share/${name}/
|
2012-02-04 10:32:07 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2019-03-05 11:01:02 +00:00
|
|
|
homepage = http://www.c-amie.co.uk/software/analog/;
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2013-10-05 14:22:46 +00:00
|
|
|
description = "Powerful tool to generate web server statistics";
|
2016-05-16 20:30:20 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.peti ];
|
2012-02-04 10:32:07 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|