2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2021-12-06 16:07:01 +00:00
|
|
|
, fetchpatch
|
2020-08-20 17:08:02 +00:00
|
|
|
, nix-update-script
|
2021-09-22 15:38:15 +00:00
|
|
|
, substituteAll
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, vala
|
|
|
|
, python3
|
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, granite
|
|
|
|
, libgee
|
|
|
|
, elementary-icon-theme
|
2021-12-06 16:07:01 +00:00
|
|
|
, elementary-settings-daemon
|
2020-04-24 23:36:52 +00:00
|
|
|
, gettext
|
|
|
|
, libhandy
|
|
|
|
, wrapGAppsHook
|
2021-09-22 15:38:15 +00:00
|
|
|
, appcenter
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "elementary-onboarding";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "6.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
2022-01-26 04:04:25 +00:00
|
|
|
repo = "onboarding";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-9voy9eje3VlV4IMM664EyjKWTfSVogX5JoRCqhsUXTE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-26 04:04:25 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
appcenter = appcenter;
|
|
|
|
})
|
|
|
|
# Provides the directory where the locales are actually installed
|
|
|
|
# https://github.com/elementary/onboarding/pull/147
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/elementary/onboarding/commit/af19c3dbefd1c0e0ec18eddacc1f21cb991f5513.patch";
|
|
|
|
sha256 = "sha256-fSFfjSd33W7rXXEUHY8b3rv9B9c31XfCjxjRxBBrqjs=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
python3
|
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
elementary-icon-theme
|
2021-12-06 16:07:01 +00:00
|
|
|
elementary-settings-daemon # settings schema
|
2020-04-24 23:36:52 +00:00
|
|
|
glib
|
|
|
|
granite
|
|
|
|
gtk3
|
|
|
|
libgee
|
|
|
|
libhandy
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = "pantheon.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Onboarding app for new users designed for elementary OS";
|
|
|
|
homepage = "https://github.com/elementary/onboarding";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2021-09-22 15:38:15 +00:00
|
|
|
maintainers = teams.pantheon.members;
|
2021-12-06 16:07:01 +00:00
|
|
|
mainProgram = "io.elementary.onboarding";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|