nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 48 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 makeWrapper, 6 bc, 7 bluez, 8}: 9 10stdenv.mkDerivation { 11 pname = "rofi-bluetooth"; 12 version = "0-unstable-2023-02-03"; 13 14 src = fetchFromGitHub { 15 owner = "nickclyde"; 16 repo = "rofi-bluetooth"; 17 # https://github.com/nickclyde/rofi-bluetooth/issues/19 18 rev = "9d91c048ff129819f4c6e9e48a17bd54343bbffb"; 19 sha256 = "sha256-1Xe3QFThIvJDCUznDP5ZBzwZEMuqmxpDIV+BcVvQDG8="; 20 }; 21 22 nativeBuildInputs = [ makeWrapper ]; 23 24 installPhase = '' 25 runHook preInstall 26 27 install -D --target-directory=$out/bin/ ./rofi-bluetooth 28 29 wrapProgram $out/bin/rofi-bluetooth \ 30 --prefix PATH ":" ${ 31 lib.makeBinPath [ 32 bc 33 bluez 34 ] 35 } 36 37 runHook postInstall 38 ''; 39 40 meta = with lib; { 41 description = "Rofi-based interface to connect to bluetooth devices and display status info"; 42 homepage = "https://github.com/nickclyde/rofi-bluetooth"; 43 license = licenses.gpl3Only; 44 maintainers = with maintainers; [ MoritzBoehme ]; 45 mainProgram = "rofi-bluetooth"; 46 platforms = platforms.linux; 47 }; 48}