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
|
|
|
|
, dbus
|
|
|
|
, fetchFromGitHub
|
|
|
|
, flatpak
|
|
|
|
, glib
|
|
|
|
, granite
|
|
|
|
, gtk3
|
|
|
|
, json-glib
|
|
|
|
, libgee
|
2021-07-24 12:14:16 +00:00
|
|
|
, libhandy
|
2024-01-02 11:29:13 +00:00
|
|
|
, libportal-gtk3
|
|
|
|
, libsoup_3
|
2020-04-24 23:36:52 +00:00
|
|
|
, libxml2
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, vala
|
2020-08-20 17:08:02 +00:00
|
|
|
, polkit
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "appcenter";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "7.4.0-unstable-2024-02-07";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = pname;
|
2024-01-02 11:29:13 +00:00
|
|
|
# Add support for AppStream 1.0.
|
|
|
|
# https://github.com/elementary/appcenter/pull/2099
|
2024-04-21 15:54:59 +00:00
|
|
|
# nixpkgs-update: no auto update
|
|
|
|
rev = "fce55d9373bfb82953191b32e276a2129ffcb8c1";
|
|
|
|
hash = "sha256-7VYiE1RkaqN1Yg4pFUBs6k8QjoljYFDgQ9jCTLG3uyk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
dbus # for pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
vala
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
appstream
|
|
|
|
flatpak
|
|
|
|
glib
|
|
|
|
granite
|
|
|
|
gtk3
|
|
|
|
json-glib
|
|
|
|
libgee
|
2021-07-24 12:14:16 +00:00
|
|
|
libhandy
|
2024-01-02 11:29:13 +00:00
|
|
|
libportal-gtk3
|
|
|
|
libsoup_3
|
2020-04-24 23:36:52 +00:00
|
|
|
libxml2
|
2020-08-20 17:08:02 +00:00
|
|
|
polkit
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
2023-07-15 17:15:38 +00:00
|
|
|
# We don't have a working nix packagekit backend yet.
|
|
|
|
"-Dpackagekit_backend=false"
|
|
|
|
"-Dubuntu_drivers_backend=false"
|
2020-04-24 23:36:52 +00:00
|
|
|
"-Dpayments=false"
|
|
|
|
"-Dcurated=false"
|
|
|
|
];
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
passthru = {
|
2022-12-28 21:21:41 +00:00
|
|
|
updateScript = nix-update-script { };
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
|
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";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Open, pay-what-you-want app store for indie developers, designed for elementary OS";
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|