2022-12-28 21:21:41 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, pkg-config
|
|
|
|
, ninja
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, nemo
|
|
|
|
, gnome
|
2024-01-02 11:29:13 +00:00
|
|
|
, cinnamon-translations
|
2022-12-28 21:21:41 +00:00
|
|
|
}:
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
let
|
|
|
|
srcs = import ../srcs.nix { inherit fetchFromGitHub; };
|
|
|
|
in
|
2022-12-28 21:21:41 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nemo-fileroller";
|
2023-07-15 17:15:38 +00:00
|
|
|
inherit (srcs) version src;
|
2022-12-28 21:21:41 +00:00
|
|
|
|
|
|
|
sourceRoot = "${src.name}/nemo-fileroller";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
pkg-config
|
|
|
|
ninja
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
nemo
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/nemo-fileroller.c \
|
2024-01-02 11:29:13 +00:00
|
|
|
--replace "file-roller" "${lib.getExe gnome.file-roller}" \
|
|
|
|
--replace "GNOMELOCALEDIR" "${cinnamon-translations}/share/locale"
|
2022-12-28 21:21:41 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
PKG_CONFIG_LIBNEMO_EXTENSION_EXTENSIONDIR = "${placeholder "out"}/${nemo.extensiondir}";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/linuxmint/nemo-extensions/tree/master/nemo-fileroller";
|
|
|
|
description = "Nemo file roller extension";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = teams.cinnamon.members;
|
|
|
|
};
|
|
|
|
}
|