2021-06-01 23:33:24 +00:00
|
|
|
{ fetchurl, lib, pkgs, python3Packages, stdenv }:
|
2015-10-03 17:57:38 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonPackage rec {
|
|
|
|
name = "tinc_graphs-${version}";
|
2019-12-10 14:56:20 +00:00
|
|
|
version = "0.3.11";
|
|
|
|
|
2015-10-03 17:57:38 +00:00
|
|
|
propagatedBuildInputs = with pkgs;[
|
|
|
|
python3Packages.pygeoip
|
|
|
|
## ${geolite-legacy}/share/GeoIP/GeoIPCity.dat
|
|
|
|
];
|
|
|
|
src = fetchurl {
|
2017-04-15 16:55:15 +00:00
|
|
|
url = "mirror://pypi/t/tinc_graphs/${name}.tar.gz";
|
2019-12-10 14:56:20 +00:00
|
|
|
sha256 = "0akvi2srwqny3cd4b9ghssq8wi4kcxd2khabnnvylzs1s9i28fpa";
|
2015-10-03 17:57:38 +00:00
|
|
|
};
|
2019-12-10 14:56:20 +00:00
|
|
|
|
2015-10-03 17:57:38 +00:00
|
|
|
preFixup = with pkgs;''
|
2015-10-04 16:55:08 +00:00
|
|
|
wrapProgram $out/bin/build-graphs --prefix PATH : "$out/bin"
|
|
|
|
wrapProgram $out/bin/all-the-graphs --prefix PATH : "${imagemagick}/bin:${graphviz}/bin:$out/bin"
|
|
|
|
wrapProgram $out/bin/tinc-stats2json --prefix PATH : "${tinc}/bin"
|
2015-10-03 17:57:38 +00:00
|
|
|
'';
|
2015-10-17 21:51:02 +00:00
|
|
|
|
2015-10-03 17:57:38 +00:00
|
|
|
meta = {
|
|
|
|
homepage = http://krebsco.de/;
|
|
|
|
description = "Create Graphs from Tinc Stats";
|
2021-06-01 23:33:24 +00:00
|
|
|
license = lib.licenses.wtfpl;
|
2015-10-03 17:57:38 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|