nixos-configuration/pkgs/wofi-bluetooth/wofi-bluetooth.nix
2023-11-08 23:45:08 +00:00

30 lines
590 B
Nix

{ lib
, stdenv
, makeWrapper
, bluez
, wofi
, rofi-bluetooth
}:
stdenv.mkDerivation rec {
pname = "wofi-bluetooth";
version = rofi-bluetooth.version;
src = 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
'';
}