stockholm/krebs/5pkgs/tinc_graphs/default.nix

27 lines
833 B
Nix
Raw Normal View History

2015-10-03 17:57:38 +00:00
{stdenv,fetchurl,pkgs,python3Packages, ... }:
python3Packages.buildPythonPackage rec {
name = "tinc_graphs-${version}";
2017-04-15 16:55:15 +00:00
version = "0.3.10";
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";
sha256 = "0f4cvb9424fhfmc0hbzmynzh9528fyhx00ayq1nbpgd1p89yw7mc";
2015-10-03 17:57:38 +00:00
};
preFixup = with pkgs;''
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";
license = stdenv.lib.licenses.wtfpl;
};
}