summary refs log tree commit diff
path: root/pkgs/applications/audio/pamix/default.nix
blob: cc5d84d9471b1d8062f027236ae851b1b0cc7674 (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
{ stdenv, fetchFromGitHub
, pkgconfig, cmake
, libpulseaudio, ncurses }:

stdenv.mkDerivation rec {
  pname = "pamix";
  version = "1.6";

  src = fetchFromGitHub {
    owner  = "patroclos";
    repo   = "pamix";
    rev    = version;
    sha256 = "1d44ggnwkf2gff62959pj45v3a2k091q8v154wc5pmzamam458wp";
  };

  preConfigure = ''
    substituteInPlace CMakeLists.txt --replace "/etc" "$out/etc/xdg"
  '';

  nativeBuildInputs = [ cmake pkgconfig ];
  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 ];
  };
}