summary refs log tree commit diff
path: root/pkgs/tools/bluetooth
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2022-03-31 23:29:42 +0800
committerBobby Rong <rjl931189261@126.com>2022-03-31 23:29:42 +0800
commitbaa0a8b9efac331802127efd57fa0be27b2cc074 (patch)
tree7541ec402d342629d05390f72b7130e80a60787d /pkgs/tools/bluetooth
parent85dff10d0644419a7c31b4faab6142bd34be3b65 (diff)
downloadnixpkgs-baa0a8b9efac331802127efd57fa0be27b2cc074.tar
nixpkgs-baa0a8b9efac331802127efd57fa0be27b2cc074.tar.gz
nixpkgs-baa0a8b9efac331802127efd57fa0be27b2cc074.tar.bz2
nixpkgs-baa0a8b9efac331802127efd57fa0be27b2cc074.tar.lz
nixpkgs-baa0a8b9efac331802127efd57fa0be27b2cc074.tar.xz
nixpkgs-baa0a8b9efac331802127efd57fa0be27b2cc074.tar.zst
nixpkgs-baa0a8b9efac331802127efd57fa0be27b2cc074.zip
blueberry: use gnome-bluetooth_1_0
Diffstat (limited to 'pkgs/tools/bluetooth')
-rw-r--r--pkgs/tools/bluetooth/blueberry/default.nix7
-rw-r--r--pkgs/tools/bluetooth/blueberry/gnome-bluetooth.nix96
2 files changed, 2 insertions, 101 deletions
diff --git a/pkgs/tools/bluetooth/blueberry/default.nix b/pkgs/tools/bluetooth/blueberry/default.nix
index bbc3babbd13..6a0f1d2d00b 100644
--- a/pkgs/tools/bluetooth/blueberry/default.nix
+++ b/pkgs/tools/bluetooth/blueberry/default.nix
@@ -3,18 +3,15 @@
 , fetchFromGitHub
 , bluez-tools
 , cinnamon
+, gnome
 , gobject-introspection
 , intltool
 , pavucontrol
 , python3Packages
 , util-linux
 , wrapGAppsHook
-, callPackage
 }:
 
-let
-  gnome-bluetooth = callPackage ./gnome-bluetooth.nix {};
-in
 stdenv.mkDerivation rec {
   pname = "blueberry";
   version = "1.4.7";
@@ -35,7 +32,7 @@ stdenv.mkDerivation rec {
   buildInputs = [
     bluez-tools
     cinnamon.xapps
-    gnome-bluetooth
+    gnome.gnome-bluetooth_1_0
     python3Packages.python
     util-linux
   ];
diff --git a/pkgs/tools/bluetooth/blueberry/gnome-bluetooth.nix b/pkgs/tools/bluetooth/blueberry/gnome-bluetooth.nix
deleted file mode 100644
index cf0028cf833..00000000000
--- a/pkgs/tools/bluetooth/blueberry/gnome-bluetooth.nix
+++ /dev/null
@@ -1,96 +0,0 @@
-{ lib
-, stdenv
-, fetchurl
-, fetchpatch
-, gnome
-, meson
-, ninja
-, pkg-config
-, gtk3
-, gettext
-, glib
-, udev
-, itstool
-, libxml2
-, wrapGAppsHook
-, libnotify
-, libcanberra-gtk3
-, gobject-introspection
-, gtk-doc
-, docbook-xsl-nons
-, docbook_xml_dtd_43
-, python3
-, gsettings-desktop-schemas
-}:
-
-stdenv.mkDerivation rec {
-  pname = "gnome-bluetooth";
-  version = "3.34.5";
-
-  # TODO: split out "lib"
-  outputs = [ "out" "dev" "devdoc" "man" ];
-
-  src = fetchurl {
-    url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
-    sha256 = "1a9ynlwwkb3wpg293ym517vmrkk63y809mmcv9a21k5yr199x53c";
-  };
-
-  patches = [
-    # Fix build with meson 0.61.
-    # sendto/meson.build:24:5: ERROR: Function does not take positional arguments.
-    (fetchpatch {
-      url = "https://gitlab.gnome.org/GNOME/gnome-bluetooth/-/commit/755fd758f866d3a3f7ca482942beee749f13a91e.patch";
-      sha256 = "sha256-N0MJ0pYO411o2CTNZHWmEoG2m5TGUjR6YW6HSXHTR/A=";
-    })
-  ];
-
-  nativeBuildInputs = [
-    meson
-    ninja
-    gettext
-    itstool
-    pkg-config
-    libxml2
-    wrapGAppsHook
-    gobject-introspection
-    gtk-doc
-    docbook-xsl-nons
-    docbook_xml_dtd_43
-    python3
-  ];
-
-  buildInputs = [
-    glib
-    gtk3
-    udev
-    libnotify
-    libcanberra-gtk3
-    gnome.adwaita-icon-theme
-    gsettings-desktop-schemas
-  ];
-
-  mesonFlags = [
-    "-Dicon_update=false"
-    "-Dgtk_doc=true"
-  ];
-
-  postPatch = ''
-    chmod +x meson_post_install.py # patchShebangs requires executable file
-    patchShebangs meson_post_install.py
-  '';
-
-  passthru = {
-    updateScript = gnome.updateScript {
-      packageName = pname;
-      attrPath = "gnome.${pname}";
-    };
-  };
-
-  meta = with lib; {
-    homepage = "https://help.gnome.org/users/gnome-bluetooth/stable/index.html.en";
-    description = "Application that let you manage Bluetooth in the GNOME destkop";
-    maintainers = teams.gnome.members;
-    license = licenses.gpl2Plus;
-    platforms = platforms.linux;
-  };
-}