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

70 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
2019-10-02 03:14:43 +01:00
, desktop-file-utils
, 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
'';
passthru = {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};
meta = with lib; {
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;
maintainers = teams.pantheon.members;
2021-10-28 03:47:36 +01:00
mainProgram = "io.elementary.sideload";
2019-10-02 03:14:43 +01:00
};
}