2019-05-16 03:51:35 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
2012-02-04 10:32:07 +00:00
|
|
|
|
2019-03-05 11:01:02 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-05-16 03:51:35 +00:00
|
|
|
pname = "analog";
|
2019-08-17 16:55:49 +00:00
|
|
|
version = "6.0.16";
|
2019-05-16 03:51:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "c-amie";
|
|
|
|
repo = "analog-ce";
|
|
|
|
rev = version;
|
2019-08-17 16:55:49 +00:00
|
|
|
sha256 = "15hi8kfknldwpvm885r9s7zd5h7cirs7x0zazx2nnz62xvz3iymk";
|
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" \
|
2019-05-16 03:51:35 +00:00
|
|
|
-e "s|#define LANGDIR .*|#define LANGDIR \"$out/share/$pname}/lang/\"|g"
|
2012-02-04 10:32:07 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2019-05-16 03:51:35 +00:00
|
|
|
mkdir -p $out/bin $out/etc $out/share/doc/$pname $out/share/man/man1 $out/share/$pname
|
2012-02-04 10:32:07 +00:00
|
|
|
mv analog $out/bin/
|
|
|
|
cp examples/big.cfg $out/etc/analog.cfg
|
|
|
|
mv analog.man $out/share/man/man1/analog.1
|
2019-05-16 03:51:35 +00:00
|
|
|
mv docs $out/share/doc/$pname/manual
|
|
|
|
mv how-to $out/share/doc/$pname/
|
|
|
|
mv lang images examples $out/share/$pname/
|
2012-02-04 10:32:07 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2019-05-16 03:51:35 +00:00
|
|
|
homepage = "https://www.c-amie.co.uk/software/analog/";
|
|
|
|
license = lib.licenses.gpl2;
|
2013-10-05 14:22:46 +00:00
|
|
|
description = "Powerful tool to generate web server statistics";
|
2019-05-16 03:51:35 +00:00
|
|
|
maintainers = [ lib.maintainers.peti ];
|
|
|
|
platforms = lib.platforms.linux;
|
2012-02-04 10:32:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|