mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 17:10:48 +00:00
b20a7a3974
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/analog/versions
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ stdenv, lib, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "analog";
|
|
version = "6.0.16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "c-amie";
|
|
repo = "analog-ce";
|
|
rev = version;
|
|
sha256 = "15hi8kfknldwpvm885r9s7zd5h7cirs7x0zazx2nnz62xvz3iymk";
|
|
};
|
|
|
|
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/$pname}/lang/\"|g"
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin $out/etc $out/share/doc/$pname $out/share/man/man1 $out/share/$pname
|
|
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/$pname/manual
|
|
mv how-to $out/share/doc/$pname/
|
|
mv lang images examples $out/share/$pname/
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://www.c-amie.co.uk/software/analog/";
|
|
license = lib.licenses.gpl2;
|
|
description = "Powerful tool to generate web server statistics";
|
|
maintainers = [ lib.maintainers.peti ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
|
|
}
|