2021-12-06 16:07:01 +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-icon-theme
|
|
|
|
, fetchFromGitHub
|
|
|
|
, flatpak
|
|
|
|
, gettext
|
|
|
|
, glib
|
|
|
|
, granite
|
|
|
|
, gtk3
|
|
|
|
, json-glib
|
|
|
|
, libgee
|
2021-07-24 12:14:16 +00:00
|
|
|
, libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
, libsoup
|
|
|
|
, libxml2
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, packagekit
|
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-04-24 23:36:52 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "appcenter";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "3.9.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "sha256-xktIHQHmz5gh72NEz9UQ9fMvBlj1BihWxHgxsHmTIB0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
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
|
2021-07-24 12:14:16 +00:00
|
|
|
libhandy
|
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 = [
|
|
|
|
"-Dpayments=false"
|
|
|
|
"-Dcurated=false"
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
2021-12-19 01:06:50 +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
|
|
|
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;
|
2021-09-22 15:38:15 +00:00
|
|
|
maintainers = teams.pantheon.members;
|
2021-12-06 16:07:01 +00:00
|
|
|
mainProgram = "io.elementary.appcenter";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|