mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 17:44:44 +00:00
pantheon.gnome-bluetooth-contract: init at unstable-2021-02-23
This commit is contained in:
parent
0a9d1ce156
commit
b5038e5127
@ -300,6 +300,7 @@ in
|
||||
contractor
|
||||
extra-elementary-contracts
|
||||
file-roller-contract
|
||||
gnome-bluetooth-contract
|
||||
];
|
||||
|
||||
environment.pathsToLink = [
|
||||
|
@ -105,6 +105,10 @@ lib.makeScope pkgs.newScope (self: with self; {
|
||||
inherit (gnome) gnome-desktop;
|
||||
};
|
||||
|
||||
gnome-bluetooth-contract = callPackage ./desktop/gnome-bluetooth-contract {
|
||||
inherit (gnome) gnome-bluetooth;
|
||||
};
|
||||
|
||||
wingpanel = callPackage ./desktop/wingpanel { };
|
||||
|
||||
wingpanel-with-indicators = callPackage ./desktop/wingpanel/wrapper.nix {
|
||||
|
@ -0,0 +1,46 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, substituteAll
|
||||
, gnome-bluetooth
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gnome-bluetooth-contract";
|
||||
version = "unstable-2021-02-23";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "elementary";
|
||||
repo = pname;
|
||||
rev = "8dcd4d03dc7a7d487980fd8bc95af985dc4fff5c";
|
||||
sha256 = "sha256-9eX6j/cvN/CoqrHrh9mZEsUJ8viDWIGxIva1xFwIK7c=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./exec-path.patch;
|
||||
gnome_bluetooth = gnome-bluetooth;
|
||||
})
|
||||
];
|
||||
|
||||
dontConfigure = true;
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/contractor
|
||||
cp *.contract $out/share/contractor/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Contractor extension for GNOME Bluetooth";
|
||||
homepage = "https://github.com/elementary/gnome-bluetooth-contract";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = teams.pantheon.members;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
diff --git a/io.elementary.contracter.gnome-bluetooth.contract b/io.elementary.contracter.gnome-bluetooth.contract
|
||||
index 3eb2334..ce0e5f5 100644
|
||||
--- a/io.elementary.contracter.gnome-bluetooth.contract
|
||||
+++ b/io.elementary.contracter.gnome-bluetooth.contract
|
||||
@@ -3,5 +3,5 @@ Name=Send Files via Bluetooth
|
||||
Icon=bluetooth
|
||||
Description=Send files to device...
|
||||
MimeType=!inode;
|
||||
-Exec=bluetooth-sendto %F
|
||||
+Exec=@gnome_bluetooth@/bin/bluetooth-sendto %F
|
||||
Gettext-Domain=gnome-bluetooth2
|
Loading…
Reference in New Issue
Block a user