2022-09-11 15:47:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
2024-09-19 14:19:46 +00:00
|
|
|
, bc
|
2022-09-11 15:47:08 +00:00
|
|
|
, bluez
|
|
|
|
}:
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
stdenv.mkDerivation {
|
2022-09-11 15:47:08 +00:00
|
|
|
pname = "rofi-bluetooth";
|
2023-02-22 10:55:15 +00:00
|
|
|
version = "unstable-2023-02-03";
|
2022-09-11 15:47:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nickclyde";
|
2024-07-27 06:49:29 +00:00
|
|
|
repo = "rofi-bluetooth";
|
2022-09-11 15:47:08 +00:00
|
|
|
# https://github.com/nickclyde/rofi-bluetooth/issues/19
|
2023-02-22 10:55:15 +00:00
|
|
|
rev = "9d91c048ff129819f4c6e9e48a17bd54343bbffb";
|
|
|
|
sha256 = "sha256-1Xe3QFThIvJDCUznDP5ZBzwZEMuqmxpDIV+BcVvQDG8=";
|
2022-09-11 15:47:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -D --target-directory=$out/bin/ ./rofi-bluetooth
|
|
|
|
|
|
|
|
wrapProgram $out/bin/rofi-bluetooth \
|
2024-09-19 14:19:46 +00:00
|
|
|
--prefix PATH ":" ${lib.makeBinPath [ bc bluez ] }
|
2022-09-11 15:47:08 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Rofi-based interface to connect to bluetooth devices and display status info";
|
|
|
|
homepage = "https://github.com/nickclyde/rofi-bluetooth";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ MoritzBoehme ];
|
2023-08-22 20:05:09 +00:00
|
|
|
mainProgram = "rofi-bluetooth";
|
2022-09-11 15:47:08 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2024-07-27 06:49:29 +00:00
|
|
|
}
|