3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/pantheon/apps/appcenter/default.nix

106 lines
1.9 KiB
Nix
Raw Normal View History

2021-10-30 03:36:02 +01:00
{ lib
, stdenv
, nix-update-script
2019-10-02 02:50:07 +01:00
, appstream
, appstream-glib
, dbus
, desktop-file-utils
, elementary-gtk-theme
, elementary-icon-theme
, fetchFromGitHub
, flatpak
, gettext
, glib
, granite
, gtk3
, json-glib
, libgee
2021-07-17 04:34:29 +01:00
, libhandy
2019-10-02 02:50:07 +01:00
, libsoup
, libxml2
, meson
, ninja
, packagekit
2021-01-17 02:21:50 +00:00
, pkg-config
2019-10-02 02:50:07 +01:00
, python3
, vala
, polkit
2019-10-02 02:50:07 +01:00
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "appcenter";
2021-12-11 11:45:28 +00:00
version = "3.9.1";
2019-10-02 02:50:07 +01:00
src = fetchFromGitHub {
owner = "elementary";
repo = pname;
rev = version;
2021-12-11 11:45:28 +00:00
sha256 = "sha256-xktIHQHmz5gh72NEz9UQ9fMvBlj1BihWxHgxsHmTIB0=";
2019-10-02 02:50:07 +01:00
};
patches = [
# Introduces a packagekit_backend meson flag.
# Makes appcenter actually work by using only the flatpak backend.
# https://github.com/elementary/appcenter/pull/1739
./add-packagekit-backend-option.patch
];
2019-10-02 02:50:07 +01:00
nativeBuildInputs = [
appstream-glib
2021-01-17 02:21:50 +00:00
dbus # for pkg-config
2019-10-02 02:50:07 +01:00
desktop-file-utils
gettext
meson
ninja
2021-01-17 02:21:50 +00:00
pkg-config
2019-10-02 02:50:07 +01:00
python3
vala
wrapGAppsHook
];
buildInputs = [
appstream
elementary-gtk-theme
elementary-icon-theme
2019-10-02 02:50:07 +01:00
flatpak
glib
granite
gtk3
json-glib
libgee
2021-07-17 04:34:29 +01:00
libhandy
2019-10-02 02:50:07 +01:00
libsoup
libxml2
packagekit
polkit
2019-10-02 02:50:07 +01:00
];
mesonFlags = [
"-Dpayments=false"
"-Dcurated=false"
# This option is introduced in add-packagekit-backend-option.patch
"-Dpackagekit_backend=false"
2019-10-02 02:50:07 +01:00
];
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
passthru = {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};
meta = with lib; {
homepage = "https://github.com/elementary/appcenter";
2019-10-02 02:50:07 +01:00
description = "An open, pay-what-you-want app store for indie developers, designed for elementary OS";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.pantheon.members;
2021-10-28 03:47:36 +01:00
mainProgram = "io.elementary.appcenter";
2019-10-02 02:50:07 +01:00
};
}