a5adf1ddd8
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
97 lines
1.6 KiB
Nix
97 lines
1.6 KiB
Nix
{ lib, stdenv
|
|
, nix-update-script
|
|
, 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
|
|
, pkgconfig
|
|
, python3
|
|
, vala
|
|
, polkit
|
|
, libhandy_0
|
|
, wrapGAppsHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "appcenter";
|
|
version = "3.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elementary";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-8r0DlmG8xlCQ1uFHZQjXG2ls4VBrsRzrVY8Ey3/OYAU=";
|
|
};
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script {
|
|
attrPath = "pantheon.${pname}";
|
|
};
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
appstream-glib
|
|
dbus # for pkgconfig
|
|
desktop-file-utils
|
|
gettext
|
|
meson
|
|
ninja
|
|
pkgconfig
|
|
python3
|
|
vala
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
appstream
|
|
elementary-gtk-theme
|
|
elementary-icon-theme
|
|
flatpak
|
|
glib
|
|
granite
|
|
gtk3
|
|
json-glib
|
|
libgee
|
|
libhandy_0 # doesn't support libhandy-1 yet
|
|
libsoup
|
|
libxml2
|
|
packagekit
|
|
polkit
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dhomepage=false"
|
|
"-Dpayments=false"
|
|
"-Dcurated=false"
|
|
];
|
|
|
|
postPatch = ''
|
|
chmod +x meson/post_install.py
|
|
patchShebangs meson/post_install.py
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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;
|
|
};
|
|
}
|