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