2021-11-26 09:51:18 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2019-08-05 20:02:06 +02:00
|
|
|
, fetchFromGitHub
|
2020-07-29 18:33:39 +02:00
|
|
|
, nix-update-script
|
2021-01-17 03:21:50 +01:00
|
|
|
, pkg-config
|
2019-08-05 20:02:06 +02:00
|
|
|
, meson
|
|
|
|
, python3
|
|
|
|
, ninja
|
|
|
|
, vala
|
|
|
|
, gtk3
|
|
|
|
, libgee
|
2021-07-16 15:35:05 +02:00
|
|
|
, libhandy
|
2019-08-05 20:02:06 +02:00
|
|
|
, granite
|
|
|
|
, gettext
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2018-08-20 22:31:18 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "switchboard";
|
2022-05-04 03:20:06 +02:00
|
|
|
version = "6.0.1";
|
2018-08-20 22:31:18 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-05-04 03:20:06 +02:00
|
|
|
sha256 = "sha256-QMh9m6Xc0BeprZHrOgcmSireWb8Ja7Td0COYMgYw+5M=";
|
2018-08-20 22:31:18 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 03:21:50 +01:00
|
|
|
pkg-config
|
2018-08-20 22:31:18 +02:00
|
|
|
python3
|
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
granite
|
|
|
|
gtk3
|
|
|
|
libgee
|
2021-07-16 15:35:05 +02:00
|
|
|
libhandy
|
2018-08-20 22:31:18 +02:00
|
|
|
];
|
|
|
|
|
2019-08-05 20:02:06 +02:00
|
|
|
patches = [
|
|
|
|
./plugs-path-env.patch
|
|
|
|
];
|
2018-08-20 22:31:18 +02:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
2022-01-19 15:53:31 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = "pantheon.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-08-20 22:31:18 +02:00
|
|
|
description = "Extensible System Settings app for Pantheon";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/elementary/switchboard";
|
2018-08-20 22:31:18 +02:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.linux;
|
2021-09-18 17:00:51 +02:00
|
|
|
maintainers = teams.pantheon.members;
|
2021-10-28 04:47:36 +02:00
|
|
|
mainProgram = "io.elementary.switchboard";
|
2018-08-20 22:31:18 +02:00
|
|
|
};
|
|
|
|
}
|