nixpkgs/pkgs/desktops/gnome-3/apps/file-roller/default.nix

42 lines
1.4 KiB
Nix
Raw Normal View History

2019-02-13 13:47:50 -08:00
{ stdenv, fetchurl, glib, gtk3, meson, ninja, pkgconfig, gnome3, gettext, itstool, libxml2, libarchive
, file, json-glib, python3, wrapGAppsHook, desktop-file-utils, libnotify, nautilus, glibcLocales }:
stdenv.mkDerivation rec {
pname = "file-roller";
2019-11-25 09:34:41 -08:00
version = "3.32.3";
src = fetchurl {
url = "mirror://gnome/sources/file-roller/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2019-11-25 09:34:41 -08:00
sha256 = "0ap2hxvjljh4p6wsd9ikh2my3vsxp9r2nvjxxj3v87nwfyw1y4dy";
};
2018-03-13 17:39:32 -07:00
LANG = "en_US.UTF-8"; # postinstall.py
nativeBuildInputs = [ meson ninja gettext itstool pkgconfig libxml2 python3 wrapGAppsHook glibcLocales desktop-file-utils ];
2019-02-13 13:47:50 -08:00
buildInputs = [ glib gtk3 json-glib libarchive file gnome3.adwaita-icon-theme libnotify nautilus ];
PKG_CONFIG_LIBNAUTILUS_EXTENSION_EXTENSIONDIR = "${placeholder "out"}/lib/nautilus/extensions-3.0";
2018-03-13 17:39:32 -07:00
postPatch = ''
chmod +x postinstall.py # patchShebangs requires executable file
patchShebangs postinstall.py
2018-09-04 17:43:48 -07:00
patchShebangs data/set-mime-type-entry.py
2018-03-13 17:39:32 -07:00
'';
passthru = {
updateScript = gnome3.updateScript {
packageName = "file-roller";
attrPath = "gnome3.file-roller";
};
};
meta = with stdenv.lib; {
homepage = https://wiki.gnome.org/Apps/FileRoller;
description = "Archive manager for the GNOME desktop environment";
2018-03-13 17:39:32 -07:00
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = gnome3.maintainers;
};
}