depot/third_party/nixpkgs/pkgs/applications/audio/ncpamixer/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

29 lines
749 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, ncurses, libpulseaudio, pkg-config }:
stdenv.mkDerivation rec {
pname = "ncpamixer";
version = "1.3.3.5";
src = fetchFromGitHub {
owner = "fulhax";
repo = "ncpamixer";
rev = version;
sha256 = "sha256-iwwfuMZn8HwnTIEBgTuvnJNlRlPt4G+j/piXO8S7mPc=";
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ ncurses libpulseaudio ];
configurePhase = ''
make PREFIX=$out USE_WIDE=1 RELEASE=1 build/Makefile
'';
meta = with lib; {
description = "An ncurses mixer for PulseAudio inspired by pavucontrol";
homepage = "https://github.com/fulhax/ncpamixer";
license = licenses.mit;
platforms = platforms.linux;
maintainers = teams.c3d2.members;
};
}