nixpkgs/pkgs/applications/audio/rofi-pulse-select/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

42 lines
973 B
Nix

{ stdenv
, fetchFromGitLab
, lib
, makeWrapper
, ponymix
, rofi-unwrapped
}:
stdenv.mkDerivation rec {
pname = "rofi-pulse-select";
version = "0.2.0";
src = fetchFromGitLab {
owner = "DamienCassou";
repo = pname;
rev = version;
sha256 = "1405v0bh2m8ip9c23l95i8iq2gfrpanc6f4dz17nysdcff2ay2p3";
};
installPhase = ''
runHook preInstall
install -D --target-directory=$out/bin/ ./rofi-pulse-select
wrapProgram $out/bin/rofi-pulse-select \
--prefix PATH ":" ${lib.makeBinPath [ rofi-unwrapped ponymix ]}
runHook postInstall
'';
nativeBuildInputs = [ makeWrapper ];
meta = with lib; {
description = "Rofi-based interface to select source/sink (aka input/output) with PulseAudio";
mainProgram = "rofi-pulse-select";
homepage = "https://gitlab.com/DamienCassou/rofi-pulse-select";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ DamienCassou ];
platforms = platforms.linux;
};
}