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

71 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv
, fetchFromGitHub
, nix-update-script
, pantheon
, pkgconfig
, meson
, python3
, ninja
, vala
, gtk3
, libgee
, granite
, gettext
, clutter-gtk
, elementary-icon-theme
, wrapGAppsHook
}:
2018-08-20 21:31:18 +01:00
stdenv.mkDerivation rec {
pname = "switchboard";
version = "2.4.0";
2018-08-20 21:31:18 +01:00
src = fetchFromGitHub {
owner = "elementary";
repo = pname;
rev = version;
2020-09-04 00:43:09 +01:00
sha256 = "sha256-N3WZysLIah40kcyIyhryZpm2FxCmlvp0EB1krZ/IsYs=";
2018-08-20 21:31:18 +01:00
};
passthru = {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
2018-08-20 21:31:18 +01:00
};
};
nativeBuildInputs = [
gettext
meson
ninja
pkgconfig
python3
vala
wrapGAppsHook
];
buildInputs = [
clutter-gtk
elementary-icon-theme
granite
gtk3
libgee
];
patches = [
./plugs-path-env.patch
];
2018-08-20 21:31:18 +01:00
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
meta = with stdenv.lib; {
description = "Extensible System Settings app for Pantheon";
homepage = "https://github.com/elementary/switchboard";
2018-08-20 21:31:18 +01:00
license = licenses.lgpl21Plus;
platforms = platforms.linux;
maintainers = pantheon.maintainers;
};
}