36 lines
808 B
Nix
36 lines
808 B
Nix
|
{ 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;
|
||
|
};
|
||
|
}
|