summary refs log blame commit diff
path: root/pkgs/applications/audio/pamix/default.nix
blob: fb076797fb5f77caf0a86fa594f5af45718b20f5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                              
                   


                           
                  
                  



                         
                     
                                                                    

    



                                                                    
                                           

                                          
                    
                                              
                                                       




                                                   
{ lib, stdenv, fetchFromGitHub
, pkg-config, 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 pkg-config ];
  buildInputs = [ libpulseaudio ncurses ];

  meta = with lib; {
    description = "Pulseaudio terminal mixer";
    homepage    = "https://github.com/patroclos/PAmix";
    license     = licenses.mit;
    platforms   = platforms.linux;
    maintainers = with maintainers; [ ericsagnes ];
  };
}