about summary refs log tree commit diff
path: root/pkgs/applications/audio/aumix/default.nix
blob: 7dcabf6a2a80db8c84cde4a31f9d499e19a36ab7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib
, stdenv
, fetchurl
, gettext
, ncurses
, gtkGUI ? false
, pkg-config ? null
, gtk2 ? null
}:

assert gtkGUI -> pkg-config != null && gtk2 != null;

stdenv.mkDerivation rec {
  pname = "aumix";
  version = "2.9.1";

  src = fetchurl {
    url = "http://www.jpj.net/~trevor/aumix/releases/aumix-${version}.tar.bz2";
    sha256 = "0a8fwyxnc5qdxff8sl2sfsbnvgh6pkij4yafiln0fxgg6bal7knj";
  };

  buildInputs = [ gettext ncurses ]
    ++ lib.optionals gtkGUI [ pkg-config gtk2 ];

  meta = {
    description = "Audio mixer for X and the console";
    longDescription = ''
      Aumix adjusts an audio mixer from X, the console, a terminal,
      the command line or a script.
    '';
    homepage = "http://www.jpj.net/~trevor/aumix.html";
    license = lib.licenses.gpl2Plus;

    maintainers = [ ];
    platforms = lib.platforms.linux;
  };
}