2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2022-02-10 20:34:41 +00:00
|
|
|
, unstableGitUpdater
|
2021-12-06 16:07:01 +00:00
|
|
|
, substituteAll
|
|
|
|
, gnome-bluetooth
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-bluetooth-contract";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "unstable-2021-02-22";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = unstableGitUpdater {
|
|
|
|
url = "https://github.com/elementary/gnome-bluetooth-contract.git";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
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;
|
2022-03-30 09:31:56 +00:00
|
|
|
# sendto device selection is removed in gnome-bluetooth 42
|
|
|
|
# https://github.com/elementary/gnome-bluetooth-contract/issues/1
|
|
|
|
broken = true;
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
}
|