2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2018-02-24 02:22:13 +00:00
|
|
|
, pkgconfig, 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
|
|
|
};
|
|
|
|
|
2018-02-24 02:22:13 +00:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace CMakeLists.txt --replace "/etc" "$out/etc/xdg"
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
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 ];
|
|
|
|
};
|
|
|
|
}
|