d56f44df06
GitOrigin-RevId: bc4b9eef3ce3d5a90d8693e8367c9cbfc9fc1e13
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, unstableGitUpdater
|
|
, substituteAll
|
|
, gnome-bluetooth_1_0
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnome-bluetooth-contract";
|
|
version = "unstable-2021-02-22";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elementary";
|
|
repo = pname;
|
|
rev = "8dcd4d03dc7a7d487980fd8bc95af985dc4fff5c";
|
|
sha256 = "sha256-9eX6j/cvN/CoqrHrh9mZEsUJ8viDWIGxIva1xFwIK7c=";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./exec-path.patch;
|
|
# sendto device selection is removed in gnome-bluetooth 42
|
|
# https://github.com/elementary/gnome-bluetooth-contract/issues/1
|
|
gnome_bluetooth = gnome-bluetooth_1_0;
|
|
})
|
|
];
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/contractor
|
|
cp *.contract $out/share/contractor/
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = unstableGitUpdater {
|
|
url = "https://github.com/elementary/gnome-bluetooth-contract.git";
|
|
};
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|