summary refs log tree commit diff
path: root/pkgs/applications/audio/rofi-pulse-select/default.nix
diff options
context:
space:
mode:
authorDamien Cassou <damien@cassou.me>2021-12-05 17:02:03 +0100
committerDamien Cassou <damien@cassou.me>2021-12-19 18:50:46 +0100
commit95655d91523ffbc000d9a98392169a5056dfbd04 (patch)
tree1ecec5d4ed8d50bb7b00a01b6791475499027b44 /pkgs/applications/audio/rofi-pulse-select/default.nix
parent28eef230ec9bb74aac4b8313a41581d67bc17595 (diff)
downloadnixpkgs-95655d91523ffbc000d9a98392169a5056dfbd04.tar
nixpkgs-95655d91523ffbc000d9a98392169a5056dfbd04.tar.gz
nixpkgs-95655d91523ffbc000d9a98392169a5056dfbd04.tar.bz2
nixpkgs-95655d91523ffbc000d9a98392169a5056dfbd04.tar.lz
nixpkgs-95655d91523ffbc000d9a98392169a5056dfbd04.tar.xz
nixpkgs-95655d91523ffbc000d9a98392169a5056dfbd04.tar.zst
nixpkgs-95655d91523ffbc000d9a98392169a5056dfbd04.zip
rofi-pulse-select: init at 0.2.0
Diffstat (limited to 'pkgs/applications/audio/rofi-pulse-select/default.nix')
-rw-r--r--pkgs/applications/audio/rofi-pulse-select/default.nix40
1 files changed, 40 insertions, 0 deletions
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 00000000000..f4f70a9d1c3
--- /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;
+  };
+}