Skip to content

Commit

Permalink
Merge pull request #166569: unbreak GNOME Flashback and reintroduce g…
Browse files Browse the repository at this point in the history
…nome-bluetooth_1_0

- Add missing geocode-glib dependency for gnome-panel
- Reintroduce gnome-bluetooth_1_0 for gnome-flashback, blueberry and gnome-bluetooth-contract

Related:
- https://gitlab.gnome.org/GNOME/gnome-panel/-/merge_requests/49
- #166569 (comment)
- linuxmint/blueberry#123
- elementary/gnome-bluetooth-contract#1
  • Loading branch information
bobby285271 authored Apr 1, 2022
2 parents 5a9ea69 + 7ce8bc5 commit 3c583c8
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 19 deletions.
1 change: 1 addition & 0 deletions nixos/modules/services/x11/desktop-managers/pantheon.nix
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ in
environment.systemPackages = with pkgs.pantheon; [
contractor
file-roller-contract
gnome-bluetooth-contract
];

environment.pathsToLink = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ lib
, stdenv
{ stdenv
, lib
, fetchurl
, fetchpatch
, gnome
Expand Down Expand Up @@ -32,7 +32,7 @@ stdenv.mkDerivation rec {

src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "1a9ynlwwkb3wpg293ym517vmrkk63y809mmcv9a21k5yr199x53c";
sha256 = "bJSeUsi+zCBU2qzWBJAfZs5c9wml+pHEu3ysyTm1Pqk=";
};

patches = [
Expand Down Expand Up @@ -82,7 +82,8 @@ stdenv.mkDerivation rec {
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
attrPath = "gnome.${pname}";
attrPath = "gnome.gnome-bluetooth_1_0";
freeze = true;
};
};

Expand Down
2 changes: 2 additions & 0 deletions pkgs/desktops/gnome/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ lib.makeScope pkgs.newScope (self: with self; {

gnome-bluetooth = callPackage ./core/gnome-bluetooth { };

gnome-bluetooth_1_0 = callPackage ./core/gnome-bluetooth/1.0 { };

gnome-color-manager = callPackage ./core/gnome-color-manager { };

gnome-contacts = callPackage ./core/gnome-contacts { };
Expand Down
7 changes: 4 additions & 3 deletions pkgs/desktops/gnome/misc/gnome-flashback/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{ lib, stdenv
{ stdenv
, lib
, autoreconfHook
, fetchurl
, gettext
, glib
, gnome-bluetooth
, gnome-bluetooth_1_0
, gnome-desktop
, gnome-panel
, gnome-session
Expand Down Expand Up @@ -94,7 +95,7 @@ let

buildInputs = [
glib
gnome-bluetooth
gnome-bluetooth_1_0
gnome-desktop
gsettings-desktop-schemas
gtk3
Expand Down
13 changes: 12 additions & 1 deletion pkgs/desktops/gnome/misc/gnome-panel/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{ lib, stdenv
{ stdenv
, lib
, fetchurl
, fetchpatch
, autoreconfHook
, dconf
, evolution-data-server
, gdm
, geocode-glib
, gettext
, glib
, gnome-desktop
Expand Down Expand Up @@ -37,6 +40,13 @@ stdenv.mkDerivation rec {
# instead of gnome-panel’s libdir so that the NixOS module can make gnome-panel
# load modules from other packages as well.
./modulesdir-env-var.patch

# Add missing geocode-glib-1.0 dependency
# https://gitlab.gnome.org/GNOME/gnome-panel/-/merge_requests/49
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/gnome-panel/-/commit/f58a43ec4649a25f1a762b36e1401b81cd2b214b.patch";
sha256 = "sha256-DFqaNUjkLh4xd81qgQpl+568eUZeWyF8LxdZoTgMfCQ=";
})
];

# make .desktop Exec absolute
Expand Down Expand Up @@ -69,6 +79,7 @@ stdenv.mkDerivation rec {
dconf
evolution-data-server
gdm
geocode-glib
glib
gnome-desktop
gnome-menus
Expand Down
2 changes: 1 addition & 1 deletion pkgs/desktops/pantheon/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ lib.makeScope pkgs.newScope (self: with self; {
gala = callPackage ./desktop/gala { };

gnome-bluetooth-contract = callPackage ./desktop/gnome-bluetooth-contract {
inherit (gnome) gnome-bluetooth;
inherit (gnome) gnome-bluetooth_1_0;
};

wingpanel = callPackage ./desktop/wingpanel { };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
, fetchFromGitHub
, unstableGitUpdater
, substituteAll
, gnome-bluetooth
, gnome-bluetooth_1_0
}:

stdenv.mkDerivation rec {
Expand All @@ -20,7 +20,9 @@ stdenv.mkDerivation rec {
patches = [
(substituteAll {
src = ./exec-path.patch;
gnome_bluetooth = gnome-bluetooth;
# sendto device selection is removed in gnome-bluetooth 42
# https://github.com/elementary/gnome-bluetooth-contract/issues/1
gnome_bluetooth = gnome-bluetooth_1_0;
})
];

Expand Down Expand Up @@ -49,8 +51,5 @@ stdenv.mkDerivation rec {
license = licenses.gpl3Plus;
maintainers = teams.pantheon.members;
platforms = platforms.linux;
# sendto device selection is removed in gnome-bluetooth 42
# https://github.com/elementary/gnome-bluetooth-contract/issues/1
broken = true;
};
}
7 changes: 2 additions & 5 deletions pkgs/tools/bluetooth/blueberry/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -35,7 +32,7 @@ stdenv.mkDerivation rec {
buildInputs = [
bluez-tools
cinnamon.xapps
gnome-bluetooth
gnome.gnome-bluetooth_1_0
python3Packages.python
util-linux
];
Expand Down

0 comments on commit 3c583c8

Please sign in to comment.