2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitLab
|
|
|
|
, gitUpdater
|
|
|
|
, file
|
|
|
|
, which
|
|
|
|
, intltool
|
|
|
|
, gobject-introspection
|
|
|
|
, findutils
|
|
|
|
, xdg-utils
|
|
|
|
, dconf
|
|
|
|
, gtk3
|
|
|
|
, python3Packages
|
|
|
|
, xfconf
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "catfish";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "4.18.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.xfce.org";
|
|
|
|
owner = "apps";
|
|
|
|
repo = pname;
|
|
|
|
rev = "${pname}-${version}";
|
2023-08-10 07:59:29 +00:00
|
|
|
sha256 = "sha256-hfbIgSFn48++eGrJXzhXRxhWkrjgTYsr7BX/n0EXhGo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-10-19 13:55:26 +00:00
|
|
|
python3Packages.distutils-extra
|
2020-04-24 23:36:52 +00:00
|
|
|
file
|
|
|
|
which
|
|
|
|
intltool
|
|
|
|
gobject-introspection # for setup hook populating GI_TYPELIB_PATH
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
dconf
|
|
|
|
python3Packages.pyxdg
|
|
|
|
python3Packages.ptyprocess
|
|
|
|
python3Packages.pycairo
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
python3Packages.dbus-python
|
|
|
|
python3Packages.pygobject3
|
|
|
|
python3Packages.pexpect
|
2021-02-05 17:12:51 +00:00
|
|
|
xdg-utils
|
2020-04-24 23:36:52 +00:00
|
|
|
findutils
|
2021-08-10 14:31:46 +00:00
|
|
|
xfconf
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Explicitly set the prefix dir in "setup.py" because setuptools is
|
|
|
|
# not using "$out" as the prefix when installing catfish data. In
|
|
|
|
# particular the variable "__catfish_data_directory__" in
|
|
|
|
# "catfishconfig.py" is being set to a subdirectory in the python
|
|
|
|
# path in the store.
|
|
|
|
postPatch = ''
|
|
|
|
sed -i "/^ if self.root/i\\ self.prefix = \"$out\"" setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Disable check because there is no test in the source distribution
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
passthru.updateScript = gitUpdater { rev-prefix = "${pname}-"; };
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://docs.xfce.org/apps/catfish/start";
|
|
|
|
description = "Handy file search tool";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "catfish";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
Catfish is a handy file searching tool. The interface is
|
|
|
|
intentionally lightweight and simple, using only GTK 3.
|
|
|
|
You can configure it to your needs by using several command line
|
|
|
|
options.
|
|
|
|
'';
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2021-12-19 01:06:50 +00:00
|
|
|
maintainers = with maintainers; [ ] ++ teams.xfce.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|