depot/third_party/nixpkgs/pkgs/desktops/gnome/apps/file-roller/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

78 lines
1.3 KiB
Nix

{ lib
, stdenv
, fetchurl
, fetchpatch
, desktop-file-utils
, gettext
, glibcLocales
, itstool
, libxml2
, meson
, ninja
, pkg-config
, python3
, wrapGAppsHook
, cpio
, glib
, gnome
, gtk3
, libhandy
, json-glib
, libarchive
, libportal-gtk3
, nautilus
}:
stdenv.mkDerivation (finalAttrs: {
pname = "file-roller";
version = "43.1";
src = fetchurl {
url = "mirror://gnome/sources/file-roller/${lib.versions.major finalAttrs.version}/file-roller-${finalAttrs.version}.tar.xz";
sha256 = "hJlAI5lyk76zRdl5Pbj18Lu0H6oVXG/7SDKPIDlXrQg=";
};
nativeBuildInputs = [
desktop-file-utils
gettext
glibcLocales
itstool
libxml2
meson
ninja
pkg-config
python3
wrapGAppsHook
];
buildInputs = [
cpio
glib
gtk3
libhandy
json-glib
libarchive
libportal-gtk3
nautilus
];
postPatch = ''
patchShebangs data/set-mime-type-entry.py
'';
passthru = {
updateScript = gnome.updateScript {
packageName = "file-roller";
attrPath = "gnome.file-roller";
};
};
meta = with lib; {
homepage = "https://wiki.gnome.org/Apps/FileRoller";
description = "Archive manager for the GNOME desktop environment";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = teams.gnome.members ++ teams.pantheon.members;
mainProgram = "file-roller";
};
})