2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-08-20 17:08:02 +00:00
|
|
|
, nix-update-script
|
2020-04-24 23:36:52 +00:00
|
|
|
, appstream
|
|
|
|
, appstream-glib
|
|
|
|
, dbus
|
|
|
|
, desktop-file-utils
|
|
|
|
, elementary-gtk-theme
|
|
|
|
, elementary-icon-theme
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, flatpak
|
|
|
|
, gettext
|
|
|
|
, glib
|
|
|
|
, granite
|
|
|
|
, gtk3
|
|
|
|
, json-glib
|
|
|
|
, libgee
|
|
|
|
, libsoup
|
|
|
|
, libxml2
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, packagekit
|
|
|
|
, pantheon
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, python3
|
|
|
|
, vala
|
2020-08-20 17:08:02 +00:00
|
|
|
, polkit
|
2020-11-12 09:05:59 +00:00
|
|
|
, libhandy_0
|
2020-04-24 23:36:52 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "appcenter";
|
2020-11-30 08:33:03 +00:00
|
|
|
version = "3.5.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "MsaXdmL+M+NYAJrrwluleeNxqQg0soFbO/G/FqibBFI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
patches = [
|
|
|
|
# Allow build with appstream 0.14.x
|
|
|
|
# https://github.com/elementary/appcenter/pull/1493
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/elementary/appcenter/commit/5807dd13fe3c715f26225aed8d7a0abdea0c2a64.patch";
|
|
|
|
sha256 = "BvEahG9lU9ZdgooFDFhm5evRvnKVcmcHLdmZPb85gbo=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
passthru = {
|
2020-08-20 17:08:02 +00:00
|
|
|
updateScript = nix-update-script {
|
2020-04-24 23:36:52 +00:00
|
|
|
attrPath = "pantheon.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
2021-02-05 17:12:51 +00:00
|
|
|
dbus # for pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
desktop-file-utils
|
|
|
|
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 = [
|
|
|
|
appstream
|
|
|
|
elementary-gtk-theme
|
2020-08-20 17:08:02 +00:00
|
|
|
elementary-icon-theme
|
2020-04-24 23:36:52 +00:00
|
|
|
flatpak
|
|
|
|
glib
|
|
|
|
granite
|
|
|
|
gtk3
|
|
|
|
json-glib
|
|
|
|
libgee
|
2020-11-12 09:05:59 +00:00
|
|
|
libhandy_0 # doesn't support libhandy-1 yet
|
2020-04-24 23:36:52 +00:00
|
|
|
libsoup
|
|
|
|
libxml2
|
|
|
|
packagekit
|
2020-08-20 17:08:02 +00:00
|
|
|
polkit
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dhomepage=false"
|
|
|
|
"-Dpayments=false"
|
|
|
|
"-Dcurated=false"
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/elementary/appcenter";
|
|
|
|
description = "An open, pay-what-you-want app store for indie developers, designed for elementary OS";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = pantheon.maintainers;
|
|
|
|
};
|
|
|
|
}
|