nixpkgs/pkgs/desktops/pantheon/apps/switchboard/default.nix

80 lines
1.5 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchFromGitHub
2021-07-16 15:35:05 +02:00
, fetchpatch
, nix-update-script
, pantheon
2021-01-17 03:21:50 +01:00
, pkg-config
, meson
, python3
, ninja
, vala
, gtk3
, libgee
2021-07-16 15:35:05 +02:00
, libhandy
, granite
, gettext
, clutter-gtk
, elementary-icon-theme
, wrapGAppsHook
}:
2018-08-20 22:31:18 +02:00
stdenv.mkDerivation rec {
pname = "switchboard";
2021-07-16 15:35:05 +02:00
version = "6.0.0";
2018-08-20 22:31:18 +02:00
src = fetchFromGitHub {
owner = "elementary";
repo = pname;
rev = version;
2021-07-16 15:35:05 +02:00
sha256 = "02dfsrfmr297cxpyd5m3746ihcgjyfnb3d42ng9m4ljdvh0dxgim";
2018-08-20 22:31:18 +02:00
};
passthru = {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
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 = [
clutter-gtk
elementary-icon-theme
granite
gtk3
libgee
2021-07-16 15:35:05 +02:00
libhandy
2018-08-20 22:31:18 +02:00
];
patches = [
./plugs-path-env.patch
2021-07-16 15:35:05 +02:00
# Upstream code not respecting our localedir
# https://github.com/elementary/switchboard/pull/214
(fetchpatch {
url = "https://github.com/elementary/switchboard/commit/8d6b5f4cbbaf134880252afbf1e25d70033e6402.patch";
sha256 = "0gwq3wwj45jrnlhsmxfclbjw6xjr8kf6pp3a84vbnrazw76lg5nc";
})
];
2018-08-20 22:31:18 +02:00
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
meta = with lib; {
2018-08-20 22:31:18 +02:00
description = "Extensible System Settings app for Pantheon";
homepage = "https://github.com/elementary/switchboard";
2018-08-20 22:31:18 +02:00
license = licenses.lgpl21Plus;
platforms = platforms.linux;
maintainers = pantheon.maintainers;
};
}