2021-11-07 20:29:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
2022-01-16 17:44:45 +00:00
|
|
|
, fetchpatch
|
2021-11-07 20:29:51 +00:00
|
|
|
, gettext
|
|
|
|
, ncurses
|
2008-02-11 21:45:52 +00:00
|
|
|
, gtkGUI ? false
|
2021-11-09 09:19:27 +00:00
|
|
|
, pkg-config
|
|
|
|
, gtk2
|
2021-11-07 20:29:51 +00:00
|
|
|
}:
|
2008-02-11 21:45:52 +00:00
|
|
|
|
2010-11-10 09:16:48 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-11-07 20:29:51 +00:00
|
|
|
pname = "aumix";
|
|
|
|
version = "2.9.1";
|
|
|
|
|
2008-02-11 21:45:52 +00:00
|
|
|
src = fetchurl {
|
2021-11-07 20:29:51 +00:00
|
|
|
url = "http://www.jpj.net/~trevor/aumix/releases/aumix-${version}.tar.bz2";
|
2010-11-10 09:16:48 +00:00
|
|
|
sha256 = "0a8fwyxnc5qdxff8sl2sfsbnvgh6pkij4yafiln0fxgg6bal7knj";
|
2008-02-11 21:45:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-16 17:44:45 +00:00
|
|
|
patches = [
|
|
|
|
# Pull Gentoo fix for -fno-common toolchains. Upstream does not
|
|
|
|
# seem to have the contacts
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fno-common.patch";
|
|
|
|
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-sound/aumix/files/aumix-2.9.1-fno-common.patch?id=496c9ec7355f06f6d1d19be780a6981503e6df1f";
|
|
|
|
sha256 = "0qwylhx1hawsmx1pc7ykrjq9phksc73dq9rss6ggq15n3ggnc95y";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2008-02-11 21:45:52 +00:00
|
|
|
buildInputs = [ gettext ncurses ]
|
2021-11-07 20:29:51 +00:00
|
|
|
++ lib.optionals gtkGUI [ pkg-config gtk2 ];
|
2008-02-11 21:45:52 +00:00
|
|
|
|
2021-11-09 09:19:27 +00:00
|
|
|
meta = with lib; {
|
2013-10-05 14:22:46 +00:00
|
|
|
description = "Audio mixer for X and the console";
|
2009-03-03 13:27:40 +00:00
|
|
|
longDescription = ''
|
|
|
|
Aumix adjusts an audio mixer from X, the console, a terminal,
|
|
|
|
the command line or a script.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.jpj.net/~trevor/aumix.html";
|
2021-11-09 09:19:27 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
platforms = platforms.linux;
|
2008-02-11 21:45:52 +00:00
|
|
|
};
|
|
|
|
}
|