mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
87 lines
1.9 KiB
Nix
87 lines
1.9 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, nix-update-script
|
|
, fetchpatch
|
|
, pantheon
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, vala_0_46
|
|
, libgee
|
|
, granite
|
|
, gtk3
|
|
, libaccounts-glib
|
|
, libsignon-glib
|
|
, json-glib
|
|
, librest
|
|
, webkitgtk
|
|
, libsoup
|
|
, switchboard
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "switchboard-plug-onlineaccounts";
|
|
version = "2.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elementary";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-CVYKcRty5bBEMNyoY51JAJQy6uh+U+7IvS6V/1GMCA4=";
|
|
};
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script {
|
|
attrPath = "pantheon.${pname}";
|
|
};
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
vala_0_46
|
|
];
|
|
|
|
buildInputs = [
|
|
granite
|
|
gtk3
|
|
json-glib
|
|
libaccounts-glib
|
|
libgee
|
|
libsignon-glib
|
|
libsoup
|
|
librest
|
|
switchboard
|
|
webkitgtk
|
|
];
|
|
|
|
patches = [
|
|
# Fix build with latest vala
|
|
(fetchpatch {
|
|
url = "https://github.com/elementary/switchboard-plug-onlineaccounts/commit/5fa2882f765076d20c6ef4886198a34a05159f8a.patch";
|
|
sha256 = "1szryyy7shdmbvx9yhpi0bhzaayg7hl6pq2c456j1qf9kfv0m4hf";
|
|
})
|
|
|
|
# fix build with vala 0.48.9
|
|
(fetchpatch {
|
|
url = "https://github.com/elementary/switchboard-plug-onlineaccounts/commit/b1853b7427102b8dd94774e1e2cc455f50902263.patch";
|
|
sha256 = "J3C71GyEHEZWSghGXlwXPHFJRhrvx6i0yvi8NIDb4WE=";
|
|
})
|
|
];
|
|
|
|
PKG_CONFIG_LIBACCOUNTS_GLIB_PROVIDERFILESDIR = "${placeholder "out"}/share/accounts/providers";
|
|
PKG_CONFIG_LIBACCOUNTS_GLIB_SERVICEFILESDIR = "${placeholder "out"}/share/accounts/services";
|
|
PKG_CONFIG_SWITCHBOARD_2_0_PLUGSDIR = "${placeholder "out"}/lib/switchboard";
|
|
|
|
|
|
meta = with lib; {
|
|
description = "Switchboard Online Accounts Plug";
|
|
homepage = "https://github.com/elementary/switchboard-plug-onlineaccounts";
|
|
license = licenses.lgpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = pantheon.maintainers;
|
|
};
|
|
|
|
}
|