nixos-configuration/pkgs/wofi-bluetooth/wofi-bluetooth.nix
2025-04-16 22:54:28 +02:00

30 lines
594 B
Nix

{ lib
, stdenv
, makeWrapper
, bluez
, wofi
, rofi-bluetooth
}:
stdenv.mkDerivation rec {
pname = "wofi-bluetooth";
inherit (rofi-bluetooth) version;
inherit (rofi-bluetooth) src;
patches = [
./wofi-bluetooth.patch
];
buildInputs = [ wofi ];
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
install -D --target-directory=$out/bin/ ./rofi-bluetooth
mv $out/bin/rofi-bluetooth $out/bin/wofi-bluetooth
wrapProgram $out/bin/wofi-bluetooth \
--prefix PATH ":" ${lib.makeBinPath [ bluez wofi ] }
runHook postInstall
'';
}