2021-12-06 09:16:06 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config, cmake
|
2016-09-08 03:34:50 +01:00
|
|
|
, libpulseaudio, ncurses }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "pamix";
|
2018-02-24 02:22:13 +00:00
|
|
|
version = "1.6";
|
2016-09-08 03:34:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "patroclos";
|
|
|
|
repo = "pamix";
|
2016-11-27 02:29:03 +00:00
|
|
|
rev = version;
|
2018-02-24 02:22:13 +00:00
|
|
|
sha256 = "1d44ggnwkf2gff62959pj45v3a2k091q8v154wc5pmzamam458wp";
|
2016-09-08 03:34:50 +01:00
|
|
|
};
|
|
|
|
|
2021-12-06 09:16:06 +00:00
|
|
|
patches = [
|
2021-12-11 08:30:29 +00:00
|
|
|
# ncurses-6.3 support, included in next release
|
2021-12-06 09:16:06 +00:00
|
|
|
(fetchpatch {
|
|
|
|
name = "ncurses-6.3-p1.patch";
|
|
|
|
url = "https://github.com/patroclos/PAmix/commit/3400b9c048706c572373e4617b4d5fcdb8dd2505.patch";
|
|
|
|
sha256 = "0rw56a844pz876ad9p8hfvn2fkd5rh29gpp47h55g08spf0vwb2z";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "ncurses-6.3-p2.patch";
|
|
|
|
url = "https://github.com/patroclos/PAmix/commit/5ef67fc5ef6fc0dc0b48ff07ba48093881561d9c.patch";
|
|
|
|
sha256 = "0f8shpdv2swxdz04bkqgmkvl6c17r5mn4slzr7xd6pvw8hh51p4h";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-02-24 02:22:13 +00:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace CMakeLists.txt --replace "/etc" "$out/etc/xdg"
|
|
|
|
'';
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2016-09-08 03:34:50 +01:00
|
|
|
buildInputs = [ libpulseaudio ncurses ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-09-08 03:34:50 +01:00
|
|
|
description = "Pulseaudio terminal mixer";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/patroclos/PAmix";
|
2016-09-08 03:34:50 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ ericsagnes ];
|
|
|
|
};
|
|
|
|
}
|