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

70 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, nix-update-script
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
, 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
];
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
'';
passthru = {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};
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 = teams.pantheon.members;
2021-10-28 04:47:36 +02:00
mainProgram = "io.elementary.switchboard";
2018-08-20 22:31:18 +02:00
};
}