diff --git a/default.nix b/default.nix index e2f9051..947456b 100644 --- a/default.nix +++ b/default.nix @@ -12,6 +12,7 @@ rec { hide-activities = callPackage ./pkgs/gnome-shell-extensions/hide-activities.nix {}; hibernate-button = callPackage ./pkgs/gnome-shell-extensions/hibernate-button.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 {}; diff --git a/pkgs/gnome-shell-extensions/bluetooth-quick-connect.nix b/pkgs/gnome-shell-extensions/bluetooth-quick-connect.nix new file mode 100644 index 0000000..73b07a9 --- /dev/null +++ b/pkgs/gnome-shell-extensions/bluetooth-quick-connect.nix @@ -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; + }; +}