pantheon.elementary-onboarding: 1.2.1 -> 6.0.0

This commit is contained in:
Bobby Rong 2021-07-18 12:05:01 +08:00
parent 990ba07855
commit 891f943c12
No known key found for this signature in database
GPG key ID: ED07364437C91161
2 changed files with 24 additions and 14 deletions

View file

@ -1,8 +1,8 @@
{ lib, stdenv
, fetchFromGitHub
, nix-update-script
, substituteAll
, pantheon
, fetchpatch
, pkg-config
, meson
, ninja
@ -17,11 +17,12 @@
, gettext
, libhandy
, wrapGAppsHook
, appcenter
}:
stdenv.mkDerivation rec {
pname = "elementary-onboarding";
version = "1.2.1";
version = "6.0.0";
repoName = "onboarding";
@ -29,20 +30,9 @@ stdenv.mkDerivation rec {
owner = "elementary";
repo = repoName;
rev = version;
sha256 = "sha256-tLTwXA2miHqYqCUbIiBjb2nQB+uN/WzuE4F9m3fVCbM=";
sha256 = "1mpw0j8ymb41py9v9qlk4nwy1lnwj7k388c7gqdv34ynck0ymfi4";
};
patches = [
# Port to Libhandy-1
(fetchpatch {
url = "https://github.com/elementary/onboarding/commit/8af6b7d9216f8cbf725f708b36ef4d4f6c400c78.patch";
sha256 = "cnSCSSFEQlNd9Ncw5VCJ32stZ8D4vhl3f+derAk/Cas=";
excludes = [
".github/workflows/main.yml"
];
})
];
passthru = {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
@ -69,6 +59,13 @@ stdenv.mkDerivation rec {
libhandy
];
patches = [
(substituteAll {
src = ./fix-paths.patch;
appcenter = appcenter;
})
];
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py

View file

@ -0,0 +1,13 @@
diff --git a/src/Views/AppCenterView.vala b/src/Views/AppCenterView.vala
index 16cd18b..5895897 100644
--- a/src/Views/AppCenterView.vala
+++ b/src/Views/AppCenterView.vala
@@ -55,7 +55,7 @@ public class Onboarding.AppCenterView : AbstractOnboardingView {
appcenter_button.clicked.connect (() => {
try {
var appcenter = AppInfo.create_from_commandline (
- "io.elementary.appcenter",
+ "@appcenter@/bin/io.elementary.appcenter",
"AppCenter",
AppInfoCreateFlags.SUPPORTS_STARTUP_NOTIFICATION
);