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

31 lines
856 B
Nix
Raw Normal View History

2021-10-01 16:30:28 +00:00
{ fetchFromGitHub, lib, pkgs, python3Packages, stdenv }:
2015-10-03 17:57:38 +00:00
python3Packages.buildPythonPackage rec {
name = "tinc_graphs-${version}";
2021-10-01 16:30:28 +00:00
version = "0.4.0";
2019-12-10 14:56:20 +00:00
2015-10-03 17:57:38 +00:00
propagatedBuildInputs = with pkgs;[
python3Packages.pygeoip
## ${geolite-legacy}/share/GeoIP/GeoIPCity.dat
];
2021-10-01 16:30:28 +00:00
src = fetchFromGitHub {
owner = "makefu";
repo = "tinc_graphs";
rev = version;
sha256 = "0dbnafzz65b1nbgvj7b6skyf4x3f9rrkizmdwpnfh4qgs9ch5xmz";
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;''
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 = lib.licenses.wtfpl;
2015-10-03 17:57:38 +00:00
};
}