pkgs: add rofi-bluetooth

This commit is contained in:
Bruno BELANYI 2021-10-15 17:09:03 +02:00
parent 5059835e97
commit 52fb5500be
2 changed files with 42 additions and 0 deletions

View File

@ -22,6 +22,8 @@ pkgs.lib.makeScope pkgs.newScope (pkgs: {
nolimips = pkgs.callPackage ./nolimips { };
rofi-bluetooth = pkgs.callPackage ./rofi-bluetooth { };
unbound-zones-adblock = pkgs.callPackage ./unbound-zones-adblock { };
unified-hosts-lists = pkgs.callPackage ./unified-hosts-lists { };

View File

@ -0,0 +1,40 @@
{ lib, bluez, fetchFromGitHub, makeWrapper, rofi, stdenvNoCC }:
stdenvNoCC.mkDerivation rec {
pname = "rofi-bluetooth";
version = "unstable-2021-10-15";
src = fetchFromGitHub {
owner = "nickclyde";
repo = "rofi-bluetooth";
rev = "893db1f2b549e7bc0e9c62e7670314349a29cdf2";
sha256 = "sha256-3oROJKEQCuSnLfbJ+JSSc9hcmJTPrLHRQJsrUcaOMss=";
};
buildInputs = [
makeWrapper
];
installPhase = ''
mkdir -p $out/bin
cp $src/rofi-bluetooth $out/bin/
chmod a+x $out/bin/rofi-bluetooth
'';
wrapperPath = lib.makeBinPath [
rofi
bluez
];
fixupPhase = ''
patchShebangs $out/bin/${pname}
wrapProgram $out/bin/${pname} --prefix PATH : "${wrapperPath}"
'';
meta = with lib; {
description = "A rofi menu for managing bluetooth connections";
homepage = "https://github.com/nickclyde/rofi-bluetooth/commit/";
license = with licenses; [ gpl3Only ];
platforms = platforms.linux;
maintainers = with maintainers; [ ambroisie ];
};
}