summaryrefslogtreecommitdiffstats
path: root/makefu
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2015-10-03 19:57:38 +0200
committermakefu <github@syntax-fehler.de>2015-10-03 19:57:38 +0200
commit96a8a66cfb7fac2d4ca867c2dd91de2631649471 (patch)
tree40c080e63f1907fa1fcadf8d973fd26eff4538ce /makefu
parentd5d3c9f8b300c507e8464d4083679f02badbd25f (diff)
add alsa-tools, working tinc_graphs
Diffstat (limited to 'makefu')
-rw-r--r--makefu/5pkgs/alsa-tools/default.nix26
-rw-r--r--makefu/5pkgs/default.nix11
-rw-r--r--makefu/5pkgs/tinc_graphs/default.nix23
3 files changed, 60 insertions, 0 deletions
diff --git a/makefu/5pkgs/alsa-tools/default.nix b/makefu/5pkgs/alsa-tools/default.nix
new file mode 100644
index 000000000..9a672f048
--- /dev/null
+++ b/makefu/5pkgs/alsa-tools/default.nix
@@ -0,0 +1,26 @@
+{stdenv,alsaToolTarget,fetchurl, alsaLib, ncurses, fltk13, gtk}:
+
+stdenv.mkDerivation rec {
+ name = "alsa-${alsaToolTarget}-${version}";
+ alsaToolsName = "alsa-tools-${version}";
+ version = "1.0.29";
+
+ src = fetchurl {
+ urls = [
+ "ftp://ftp.alsa-project.org/pub/tools/${alsaToolsName}.tar.bz2"
+ "http://alsa.cybermirror.org/tools/${alsaToolsName}.tar.bz2"
+
+ ];
+ sha256 = "1lgvyb81md25s9ciswpdsbibmx9s030kvyylf0673w3kbamz1awl";
+ };
+ sourceRoot = "${alsaToolsName}/${alsaToolTarget}/";
+ buildInputs = [ alsaLib fltk13 gtk ncurses ];
+
+ meta = {
+ homepage = http://www.alsa-project.org/;
+ description = "ALSA tools - ${name}";
+
+ platforms = stdenv.lib.platforms.linux;
+ maintainers = [ stdenv.lib.maintainers.makefu ];
+ };
+}
diff --git a/makefu/5pkgs/default.nix b/makefu/5pkgs/default.nix
new file mode 100644
index 000000000..15dab1100
--- /dev/null
+++ b/makefu/5pkgs/default.nix
@@ -0,0 +1,11 @@
+{ pkgs, ... }:
+
+let
+ inherit (pkgs) callPackage;
+in
+{
+ alsa-hdspmixer = callPackage ./alsa-tools { alsaToolTarget="hdspmixer";};
+ alsa-hdspconf = callPackage ./alsa-tools { alsaToolTarget="hdspconf";};
+ alsa-hdsploader = callPackage ./alsa-tools { alsaToolTarget="hdsploader";};
+ tinc_graphs = callPackage ./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;
+ };
+}
+