nixpkgs/pkgs/desktops/pantheon/apps/sideload/default.nix

78 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, stdenv
2019-10-02 02:14:43 +00:00
, desktop-file-utils
, nix-update-script
2019-10-02 02:14:43 +00:00
, elementary-gtk-theme
, elementary-icon-theme
, fetchFromGitHub
, flatpak
, gettext
, glib
, granite
, gtk3
, libgee
2021-07-18 09:34:44 +00:00
, libhandy
2019-10-02 02:14:43 +00:00
, meson
, ninja
2021-01-17 02:21:50 +00:00
, pkg-config
2019-10-02 02:14:43 +00:00
, python3
, vala
, libxml2
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "sideload";
2021-09-23 01:15:48 +00:00
version = "6.0.2";
2019-10-02 02:14:43 +00:00
src = fetchFromGitHub {
owner = "elementary";
repo = pname;
rev = version;
2021-09-23 01:15:48 +00:00
sha256 = "0abpcawmmv5mgzk2i5n9rlairmjr2v9rg9b8c9g7xa085s496bi9";
2019-10-02 02:14:43 +00:00
};
passthru = {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
2019-10-02 02:14:43 +00:00
};
};
nativeBuildInputs = [
desktop-file-utils
gettext
meson
ninja
2021-01-17 02:21:50 +00:00
pkg-config
2019-10-02 02:14:43 +00:00
python3
vala
wrapGAppsHook
];
buildInputs = [
elementary-gtk-theme
elementary-icon-theme
flatpak
glib
granite
gtk3
libgee
2021-07-18 09:34:44 +00:00
libhandy
2019-10-02 02:14:43 +00:00
libxml2
];
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
meta = with lib; {
homepage = "https://github.com/elementary/sideload";
2019-10-02 02:14:43 +00:00
description = "Flatpak installer, designed for elementary OS";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.pantheon.members;
2021-10-28 02:47:36 +00:00
mainProgram = "io.elementary.sideload";
2019-10-02 02:14:43 +00:00
};
}