Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
bc,
|
|
bluez,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "rofi-bluetooth";
|
|
version = "0-unstable-2025-04-14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nickclyde";
|
|
repo = "rofi-bluetooth";
|
|
# https://github.com/nickclyde/rofi-bluetooth/issues/19
|
|
rev = "0cca4d4aa1c82c9373ce5da781d73683a29484c6";
|
|
hash = "sha256-ggYoCWRuCi1WKcwb+0zVwq3WvSqJQBitI+/XTpOc6uw=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -D --target-directory=$out/bin/ ./rofi-bluetooth
|
|
|
|
wrapProgram $out/bin/rofi-bluetooth \
|
|
--prefix PATH ":" ${
|
|
lib.makeBinPath [
|
|
bc
|
|
bluez
|
|
]
|
|
}
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Rofi-based interface to connect to bluetooth devices and display status info";
|
|
homepage = "https://github.com/nickclyde/rofi-bluetooth";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [
|
|
MoritzBoehme
|
|
iamanaws
|
|
];
|
|
mainProgram = "rofi-bluetooth";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|