<commit_before>{ lib, stdenv, fetchFromGitHub, fetchpatch, boost, libpulseaudio, installShellFiles }:

stdenv.mkDerivation rec {
  pname = "pamixer";
  version = "unstable-2021-03-29";

  src = fetchFromGitHub {
    owner = "cdemoulins";
    repo = "pamixer";
    rev = "4ea2594cb8c605dccd00a381ba19680eba368e94";
    sha256 = "sha256-kV4wIxm1WZvqqyfmgQ2cSbRJwJR154OW0MMDg2ntf6g=";
  };

  buildInputs = [ boost libpulseaudio ];

  nativeBuildInputs = [ installShellFiles ];

  installPhase = ''
    runHook preInstall

    install -Dm755 pamixer -t $out/bin

    runHook postInstall
  '';

  postInstall = ''
    installManPage pamixer.1
  '';

  meta = with lib; {
    description = "Pulseaudio command line mixer";
    longDescription = ''
      Features:
        - Get the current volume of the default sink, the default source or a selected one by its id
        - Set the volume for the default sink, the default source or any other device
        - List the sinks
        - List the sources
        - Increase / Decrease the volume for a device
        - Mute or unmute a device
    '';
    homepage = "https://github.com/cdemoulins/pamixer";
    maintainers = with maintainers; [ thiagokokada ];<commit_msg>pamixer: install using Makefile<commit_after>{ lib, stdenv, fetchFromGitHub, boost, libpulseaudio }:

stdenv.mkDerivation rec {
  pname = "pamixer";
  version = "unstable-2021-03-29";

  src = fetchFromGitHub {
    owner = "cdemoulins";
    repo = "pamixer";
    rev = "4ea2594cb8c605dccd00a381ba19680eba368e94";
    sha256 = "sha256-kV<KEY>;
  };

  buildInputs = [ boost libpulseaudio ];

  makeFlags = [ "PREFIX=$(out)" ];

  meta = with lib; {
    description = "Pulseaudio command line mixer";
    longDescription = ''
      Features:
        - Get the current volume of the default sink, the default source or a selected one by its id
        - Set the volume for the default sink, the default source or any other device
        - List the sinks
        - List the sources
        - Increase / Decrease the volume for a device
        - Mute or unmute a device
    '';
    homepage = "https://github.com/cdemoulins/pamixer";
    maintainers = with maintainers; [ thiagokokada ];
{'fraction_non_alphanumeric': 0.09458844929513416, 'fraction_numerical': 0.04047294224647567, 'mean_word_length': 2.9215686274509802, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3737840', 'n_tokens_mistral': 784, 'n_tokens_neox': 714, 'n_words': 204}