otadump: init at 0.1.2 (#329129)
[NixPkgs.git] / pkgs / by-name / ne / nemo-fileroller / package.nix
blobae668730829e9889d0d51a1f4bd31dd40854c9fa
2   stdenv,
3   lib,
4   fetchFromGitHub,
5   meson,
6   pkg-config,
7   ninja,
8   glib,
9   gtk3,
10   nemo,
11   file-roller,
12   cinnamon-translations,
15 stdenv.mkDerivation rec {
16   pname = "nemo-fileroller";
17   version = "6.4.0";
19   src = fetchFromGitHub {
20     owner = "linuxmint";
21     repo = "nemo-extensions";
22     rev = version;
23     hash = "sha256-39hWA4SNuEeaPA6D5mWMHjJDs4hYK7/ZdPkTyskvm5Y=";
24   };
26   sourceRoot = "${src.name}/nemo-fileroller";
28   nativeBuildInputs = [
29     meson
30     pkg-config
31     ninja
32   ];
34   buildInputs = [
35     glib
36     gtk3
37     nemo
38   ];
40   postPatch = ''
41     substituteInPlace src/nemo-fileroller.c \
42       --replace "file-roller" "${lib.getExe file-roller}" \
43       --replace "GNOMELOCALEDIR" "${cinnamon-translations}/share/locale"
44   '';
46   PKG_CONFIG_LIBNEMO_EXTENSION_EXTENSIONDIR = "${placeholder "out"}/${nemo.extensiondir}";
48   meta = with lib; {
49     homepage = "https://github.com/linuxmint/nemo-extensions/tree/master/nemo-fileroller";
50     description = "Nemo file roller extension";
51     license = licenses.gpl2Plus;
52     platforms = platforms.linux;
53     maintainers = teams.cinnamon.members;
54   };