From 95655d91523ffbc000d9a98392169a5056dfbd04 Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Sun, 5 Dec 2021 17:02:03 +0100 Subject: [PATCH] rofi-pulse-select: init at 0.2.0 --- .../audio/rofi-pulse-select/default.nix | 40 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 42 insertions(+) create mode 100644 pkgs/applications/audio/rofi-pulse-select/default.nix diff --git a/pkgs/applications/audio/rofi-pulse-select/default.nix b/pkgs/applications/audio/rofi-pulse-select/default.nix new file mode 100644 index 000000000000..f4f70a9d1c33 --- /dev/null +++ b/pkgs/applications/audio/rofi-pulse-select/default.nix @@ -0,0 +1,40 @@ +{ 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"; + homepage = "https://gitlab.com/DamienCassou/rofi-pulse-select"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ DamienCassou ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4bd1380e027d..2b3f2a0f80cf 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27114,6 +27114,8 @@ with pkgs; rofi-power-menu = callPackage ../applications/misc/rofi-power-menu { }; + rofi-pulse-select = callPackage ../applications/audio/rofi-pulse-select { }; + rofi-vpn = callPackage ../applications/networking/rofi-vpn { }; ympd = callPackage ../applications/audio/ympd { };