2016-09-08 05:34:50 +03:00
|
|
|
{ stdenv, fetchFromGitHub
|
2018-02-24 05:22:13 +03:00
|
|
|
, pkgconfig, cmake
|
2016-09-08 05:34:50 +03:00
|
|
|
, libpulseaudio, ncurses }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pamix-${version}";
|
2018-02-24 05:22:13 +03:00
|
|
|
version = "1.6";
|
2016-09-08 05:34:50 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "patroclos";
|
|
|
|
repo = "pamix";
|
2016-11-27 05:29:03 +03:00
|
|
|
rev = version;
|
2018-02-24 05:22:13 +03:00
|
|
|
sha256 = "1d44ggnwkf2gff62959pj45v3a2k091q8v154wc5pmzamam458wp";
|
2016-09-08 05:34:50 +03:00
|
|
|
};
|
|
|
|
|
2018-02-24 05:22:13 +03:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace CMakeLists.txt --replace "/etc" "$out/etc/xdg"
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2016-09-08 05:34:50 +03:00
|
|
|
buildInputs = [ libpulseaudio ncurses ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Pulseaudio terminal mixer";
|
|
|
|
homepage = https://github.com/patroclos/PAmix;
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ ericsagnes ];
|
|
|
|
};
|
|
|
|
}
|