Add gnome-extension for bluetooth quick connect
This commit is contained in:
parent
44db586e8c
commit
a0ed3ea98e
2 changed files with 36 additions and 0 deletions
|
@ -12,6 +12,7 @@ rec {
|
||||||
hide-activities = callPackage ./pkgs/gnome-shell-extensions/hide-activities.nix {};
|
hide-activities = callPackage ./pkgs/gnome-shell-extensions/hide-activities.nix {};
|
||||||
hibernate-button = callPackage ./pkgs/gnome-shell-extensions/hibernate-button.nix {};
|
hibernate-button = callPackage ./pkgs/gnome-shell-extensions/hibernate-button.nix {};
|
||||||
noannoyance = callPackage ./pkgs/gnome-shell-extensions/noannoyance.nix {};
|
noannoyance = callPackage ./pkgs/gnome-shell-extensions/noannoyance.nix {};
|
||||||
|
bluetooth-quick-connect = callPackage ./pkgs/gnome-shell-extensions/bluetooth-quick-connect.nix { };
|
||||||
};
|
};
|
||||||
|
|
||||||
flatery-icon-theme = callPackage ./pkgs/icon-theme/flatery-icon-theme.nix {};
|
flatery-icon-theme = callPackage ./pkgs/icon-theme/flatery-icon-theme.nix {};
|
||||||
|
|
35
pkgs/gnome-shell-extensions/bluetooth-quick-connect.nix
Normal file
35
pkgs/gnome-shell-extensions/bluetooth-quick-connect.nix
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, glib }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "bluetooth-quick-connect";
|
||||||
|
version = "13";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "bjarosze";
|
||||||
|
repo = "gnome-${name}";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "17nabca060cm6hrza25wc54w79caikg6gs624aylfjykhg5iv1k6";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
glib
|
||||||
|
];
|
||||||
|
|
||||||
|
installPhase = let
|
||||||
|
uuid = "bluetooth-quick-connect@bjarosze.gmail.com";
|
||||||
|
in
|
||||||
|
''
|
||||||
|
mkdir -p $out/share/gnome-shell/extensions/${uuid}
|
||||||
|
cp -r Settings.ui bluetooth.js extension.js prefs.js settings.js \
|
||||||
|
ui.js utils.js metadata.json schemas \
|
||||||
|
$out/share/gnome-shell/extensions/${uuid};
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Connect bluetooth paired devices from gnome control panel";
|
||||||
|
licenses = licenses.gpl3;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue