nixpkgs/pkgs/applications/misc/rofi-bluetooth/default.nix
Moritz Böhme 98e5666672
rofi-bluetooth: unstable-2021-03-05 -> unstable-2023-02-03
Update rofi-bluetooth to newest version and give users the option to
use wayland supported rofi fork (disabled by default).
2023-02-21 15:40:06 +01:00

40 lines
1,009 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, makeWrapper
, bluez
}:
stdenv.mkDerivation (finalAttrs: {
pname = "rofi-bluetooth";
version = "unstable-2023-02-03";
src = fetchFromGitHub {
owner = "nickclyde";
repo = finalAttrs.pname;
# https://github.com/nickclyde/rofi-bluetooth/issues/19
rev = "9d91c048ff129819f4c6e9e48a17bd54343bbffb";
sha256 = "sha256-1Xe3QFThIvJDCUznDP5ZBzwZEMuqmxpDIV+BcVvQDG8=";
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
install -D --target-directory=$out/bin/ ./rofi-bluetooth
wrapProgram $out/bin/rofi-bluetooth \
--prefix PATH ":" ${lib.makeBinPath [ bluez ] }
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 ];
platforms = platforms.linux;
};
})