depot/third_party/nixpkgs/pkgs/desktops/pantheon/apps/switchboard/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

63 lines
1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, nix-update-script
, pkg-config
, meson
, ninja
, sassc
, vala
, glib
, gtk4
, libadwaita
, libgee
, granite7
, wrapGAppsHook4
}:
stdenv.mkDerivation rec {
pname = "switchboard";
version = "8.0.1";
src = fetchFromGitHub {
owner = "elementary";
repo = pname;
rev = version;
sha256 = "sha256-PRoaC+h9rlwu7Q5Fh/2lBxdod93h02S5dhUVMTEuKR4=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
sassc
vala
wrapGAppsHook4
];
propagatedBuildInputs = [
# Required by switchboard-3.pc.
glib
granite7
gtk4
libadwaita
libgee
];
patches = [
./plugs-path-env.patch
];
passthru = {
updateScript = nix-update-script { };
};
meta = with lib; {
description = "Extensible System Settings app for Pantheon";
homepage = "https://github.com/elementary/switchboard";
license = licenses.lgpl21Plus;
platforms = platforms.linux;
maintainers = teams.pantheon.members;
mainProgram = "io.elementary.settings";
};
}