create rofi-bluetooth package
This commit is contained in:
parent
2ce31cfb74
commit
9bfbc8d47a
2 changed files with 34 additions and 0 deletions
|
@ -3,4 +3,5 @@ self: super: {
|
||||||
dracula-gtk = super.callPackage ./dracula-gtk {};
|
dracula-gtk = super.callPackage ./dracula-gtk {};
|
||||||
newaita-icon-theme = super.callPackage ./newaita-icon-theme {};
|
newaita-icon-theme = super.callPackage ./newaita-icon-theme {};
|
||||||
scripts = super.callPackage ./scripts {};
|
scripts = super.callPackage ./scripts {};
|
||||||
|
rofi-bluetooth = super.callPackage ./rofi-bluetooth {};
|
||||||
}
|
}
|
||||||
|
|
33
packages/rofi-bluetooth/default.nix
Normal file
33
packages/rofi-bluetooth/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
fetchFromGitHub,
|
||||||
|
makeWrapper,
|
||||||
|
stdenvNoCC,
|
||||||
|
bluez,
|
||||||
|
rofi-wayland
|
||||||
|
}:
|
||||||
|
stdenvNoCC.mkDerivation {
|
||||||
|
pname = "rofi-bluetooth";
|
||||||
|
version = "git";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "nickclyde";
|
||||||
|
repo = "rofi-bluetooth";
|
||||||
|
rev = "9d91c048ff129819f4c6e9e48a17bd54343bbffb";
|
||||||
|
hash = "sha256-1Xe3QFThIvJDCUznDP5ZBzwZEMuqmxpDIV+BcVvQDG8=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [makeWrapper];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
|
||||||
|
cp rofi-bluetooth $out/bin/rofi-bluetooth
|
||||||
|
chmod +x $out/bin/rofi-bluetooth
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
wrapProgram $out/bin/rofi-bluetooth --prefix PATH : ${lib.makeBinPath [bluez rofi-wayland]}
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue