From bd76dc9e6b85e0e36d5fdf8e06ea36b7d5d0e03b Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Thu, 25 Jul 2024 20:42:25 +0800 Subject: [PATCH] pantheon.elementary-bluetooth-daemon: init at 1.0.0 We will ship this in Pantheon module by default when new wingpanel-indicator-bluetooth release happens. --- pkgs/desktops/pantheon/default.nix | 2 + .../elementary-bluetooth-daemon/default.nix | 51 +++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 pkgs/desktops/pantheon/services/elementary-bluetooth-daemon/default.nix diff --git a/pkgs/desktops/pantheon/default.nix b/pkgs/desktops/pantheon/default.nix index 26d3f16a523a..e0f08e6e2031 100644 --- a/pkgs/desktops/pantheon/default.nix +++ b/pkgs/desktops/pantheon/default.nix @@ -123,6 +123,8 @@ lib.makeScope pkgs.newScope (self: with self; { contractor = callPackage ./services/contractor { }; + elementary-bluetooth-daemon = callPackage ./services/elementary-bluetooth-daemon { }; + elementary-capnet-assist = callPackage ./services/elementary-capnet-assist { }; elementary-notifications = callPackage ./services/elementary-notifications { }; diff --git a/pkgs/desktops/pantheon/services/elementary-bluetooth-daemon/default.nix b/pkgs/desktops/pantheon/services/elementary-bluetooth-daemon/default.nix new file mode 100644 index 000000000000..3cf021affcd2 --- /dev/null +++ b/pkgs/desktops/pantheon/services/elementary-bluetooth-daemon/default.nix @@ -0,0 +1,51 @@ +{ + stdenv, + lib, + fetchFromGitHub, + meson, + ninja, + pkg-config, + vala, + wrapGAppsHook3, + granite, + gtk3, + nix-update-script, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "elementary-bluetooth-daemon"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "elementary"; + repo = "bluetooth-daemon"; + rev = finalAttrs.version; + hash = "sha256-09udSmd51l7zPe83RBg+AihpwsELclEF+Jn+5DKdJUI="; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + vala + wrapGAppsHook3 + ]; + + buildInputs = [ + granite + gtk3 + ]; + + passthru = { + updateScript = nix-update-script { }; + }; + + meta = { + description = "Send and receive files via bluetooth"; + homepage = "https://github.com/elementary/bluetooth-daemon"; + license = lib.licenses.gpl3Plus; + maintainers = lib.teams.pantheon.members; + platforms = lib.platforms.linux; + mainProgram = "io.elementary.bluetooth"; + }; +})