2021-11-26 08:51:18 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2019-10-02 03:14:43 +01:00
|
|
|
, desktop-file-utils
|
2020-07-29 17:33:39 +01:00
|
|
|
, nix-update-script
|
2019-10-02 03:14:43 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, flatpak
|
|
|
|
, gettext
|
|
|
|
, glib
|
2022-10-25 09:40:11 +01:00
|
|
|
, granite7
|
|
|
|
, gtk4
|
2019-10-02 03:14:43 +01:00
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-17 02:21:50 +00:00
|
|
|
, pkg-config
|
2019-10-02 03:14:43 +01:00
|
|
|
, python3
|
|
|
|
, vala
|
|
|
|
, libxml2
|
2022-10-25 09:40:11 +01:00
|
|
|
, wrapGAppsHook4
|
2019-10-02 03:14:43 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sideload";
|
2022-10-25 09:40:11 +01:00
|
|
|
version = "6.1.0";
|
2019-10-02 03:14:43 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-10-25 09:40:11 +01:00
|
|
|
sha256 = "sha256-iyqKhyBU9OLlPLy5ZD/GxoOzprbm7uKBkFzjUUoQc5g=";
|
2019-10-02 03:14:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2019-10-02 03:14:43 +01:00
|
|
|
python3
|
|
|
|
vala
|
2022-10-25 09:40:11 +01:00
|
|
|
wrapGAppsHook4
|
2019-10-02 03:14:43 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
flatpak
|
|
|
|
glib
|
2022-10-25 09:40:11 +01:00
|
|
|
granite7
|
|
|
|
gtk4
|
2019-10-02 03:14:43 +01:00
|
|
|
libxml2
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
2022-01-19 14:53:31 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = "pantheon.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/elementary/sideload";
|
2019-10-02 03:14:43 +01:00
|
|
|
description = "Flatpak installer, designed for elementary OS";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2021-09-18 16:00:51 +01:00
|
|
|
maintainers = teams.pantheon.members;
|
2021-10-28 03:47:36 +01:00
|
|
|
mainProgram = "io.elementary.sideload";
|
2019-10-02 03:14:43 +01:00
|
|
|
};
|
|
|
|
}
|