30 lines
590 B
Nix
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
|
|
'';
|
|
}
|