ae91cbe6cc
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
70 lines
1.1 KiB
Nix
70 lines
1.1 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, nix-update-script
|
|
, pantheon
|
|
, pkg-config
|
|
, meson
|
|
, python3
|
|
, ninja
|
|
, vala
|
|
, gtk3
|
|
, libgee
|
|
, granite
|
|
, gettext
|
|
, clutter-gtk
|
|
, elementary-icon-theme
|
|
, wrapGAppsHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "switchboard";
|
|
version = "2.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elementary";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-N3WZysLIah40kcyIyhryZpm2FxCmlvp0EB1krZ/IsYs=";
|
|
};
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script {
|
|
attrPath = "pantheon.${pname}";
|
|
};
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gettext
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
python3
|
|
vala
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
clutter-gtk
|
|
elementary-icon-theme
|
|
granite
|
|
gtk3
|
|
libgee
|
|
];
|
|
|
|
patches = [
|
|
./plugs-path-env.patch
|
|
];
|
|
|
|
postPatch = ''
|
|
chmod +x meson/post_install.py
|
|
patchShebangs meson/post_install.py
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Extensible System Settings app for Pantheon";
|
|
homepage = "https://github.com/elementary/switchboard";
|
|
license = licenses.lgpl21Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = pantheon.maintainers;
|
|
};
|
|
}
|