about summary refs log tree commit diff
path: root/pkgs/by-name/dm
diff options
context:
space:
mode:
authorLudovico Piero <lewdovico@gnuweeb.org>2023-09-21 18:05:46 +0900
committerLudovico Piero <lewdovico@gnuweeb.org>2023-09-21 18:05:46 +0900
commit59ce52e553023f18155b25705032117773bd6994 (patch)
treed43958225125bfcf0af29ce8370cb51b453c1039 /pkgs/by-name/dm
parent8ace65ff3d7696b7a03ea9583b39df27b3153984 (diff)
downloadnixlib-59ce52e553023f18155b25705032117773bd6994.tar
nixlib-59ce52e553023f18155b25705032117773bd6994.tar.gz
nixlib-59ce52e553023f18155b25705032117773bd6994.tar.bz2
nixlib-59ce52e553023f18155b25705032117773bd6994.tar.lz
nixlib-59ce52e553023f18155b25705032117773bd6994.tar.xz
nixlib-59ce52e553023f18155b25705032117773bd6994.tar.zst
nixlib-59ce52e553023f18155b25705032117773bd6994.zip
dmenu-bluetooth: init at unstable-2023-07-16
Diffstat (limited to 'pkgs/by-name/dm')
-rw-r--r--pkgs/by-name/dm/dmenu-bluetooth/package.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/by-name/dm/dmenu-bluetooth/package.nix b/pkgs/by-name/dm/dmenu-bluetooth/package.nix
new file mode 100644
index 000000000000..63a46f1e6e50
--- /dev/null
+++ b/pkgs/by-name/dm/dmenu-bluetooth/package.nix
@@ -0,0 +1,43 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, makeWrapper
+, bluez
+, dmenu
+, nix-update-script
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "dmenu-bluetooth";
+  version = "unstable-2023-07-16";
+
+  src = fetchFromGitHub {
+    owner = "Layerex";
+    repo = "dmenu-bluetooth";
+    rev = "96e2e3e1dd7ea2d2ab0c20bf21746aba8d70cc46";
+    hash = "sha256-0G2PXWq9/JsLHnbOIJWSWWqfnBgOxaA8N2VyCbTUGmI=";
+  };
+
+  nativeBuildInputs = [ makeWrapper ];
+
+  installPhase = ''
+    runHook preInstall
+
+    install -D --target-directory=$out/bin/ ./dmenu-bluetooth
+
+    wrapProgram $out/bin/dmenu-bluetooth \
+      --prefix PATH ":" ${lib.makeBinPath [ dmenu bluez ] }
+
+    runHook postInstall
+  '';
+
+  passthru.updateScript = nix-update-script { };
+
+  meta = {
+    description = "A script that generates a dmenu menu that uses bluetoothctl to connect to bluetooth devices and display status info";
+    homepage = "https://github.com/Layerex/dmenu-bluetooth";
+    license = lib.licenses.gpl3Only;
+    maintainers = with lib.maintainers; [ ludovicopiero ];
+    platforms = lib.platforms.linux;
+  };
+})