From 041ef784486b554374fd5ad9e172889ad7e631d2 Mon Sep 17 00:00:00 2001 From: makefu Date: Sat, 3 Oct 2015 19:57:38 +0200 Subject: add alsa-tools, working tinc_graphs --- makefu/5pkgs/tinc_graphs/default.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 makefu/5pkgs/tinc_graphs/default.nix (limited to 'makefu/5pkgs/tinc_graphs') diff --git a/makefu/5pkgs/tinc_graphs/default.nix b/makefu/5pkgs/tinc_graphs/default.nix new file mode 100644 index 000000000..c35a8b02e --- /dev/null +++ b/makefu/5pkgs/tinc_graphs/default.nix @@ -0,0 +1,23 @@ +{stdenv,fetchurl,pkgs,python3Packages, ... }: + +python3Packages.buildPythonPackage rec { + name = "tinc_graphs-${version}"; + version = "0.2.8"; + propagatedBuildInputs = with pkgs;[ + python3Packages.pygeoip + ## ${geolite-legacy}/share/GeoIP/GeoIPCity.dat + ]; + src = fetchurl { + url = "https://pypi.python.org/packages/source/t/tinc_graphs/tinc_graphs-${version}.tar.gz"; + sha256 = "1rvy07ybjpqlsf9qizdp0zyq4ibd6w74k4glbbkw0x7j3j2skzdk"; + }; + preFixup = with pkgs;'' + wrapProgram $out/bin/build-graphs --prefix PATH : "${imagemagick}/bin:${graphviz}/bin" + ''; + meta = { + homepage = http://krebsco.de/; + description = "Create Graphs from Tinc Stats"; + license = stdenv.lib.licenses.wtfpl; + }; +} + -- cgit v1.2.3