7 stdenv.mkDerivation rec {
11 src = fetchFromGitHub {
15 sha256 = "sha256-NCturEibnpl6+paUZezksHzP33WtAzfIolvBLeEHXjY=";
19 sed -i src/anlghead.h \
20 -e "s|#define DEFAULTCONFIGFILE .*|#define DEFAULTCONFIGFILE \"$out/etc/analog.cfg\"|g" \
21 -e "s|#define LANGDIR .*|#define LANGDIR \"$out/share/${pname}/lang/\"|g"
22 substituteInPlace src/Makefile --replace "gcc" "${stdenv.cc.targetPrefix}cc"
26 mkdir -p $out/bin $out/etc $out/share/doc/$pname $out/share/man/man1 $out/share/$pname
28 cp examples/big.cfg $out/etc/analog.cfg
29 mv analog.man $out/share/man/man1/analog.1
30 mv docs $out/share/doc/$pname/manual
31 mv how-to $out/share/doc/$pname/
32 mv lang images examples $out/share/$pname/
36 homepage = "https://www.c-amie.co.uk/software/analog/";
37 license = lib.licenses.gpl2Only;
38 description = "Powerful tool to generate web server statistics";
39 platforms = lib.platforms.all;
40 mainProgram = "analog";