2018-12-02 11:41:15 +00:00
|
|
|
{ stdenv, fetchurl, file, which, intltool, gobject-introspection,
|
2018-02-25 02:23:58 +00:00
|
|
|
findutils, xdg_utils, gnome3, pythonPackages, hicolor-icon-theme,
|
2018-02-12 16:43:12 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
}:
|
2016-03-18 00:03:13 +00:00
|
|
|
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
|
|
|
majorver = "1.4";
|
2019-01-28 10:03:31 +00:00
|
|
|
minorver = "7";
|
2016-03-18 00:03:13 +00:00
|
|
|
version = "${majorver}.${minorver}";
|
2018-02-12 16:43:12 +00:00
|
|
|
pname = "catfish";
|
2016-03-18 00:03:13 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-08-31 15:11:38 +01:00
|
|
|
url = "https://archive.xfce.org/src/apps/${pname}/${majorver}/${pname}-${version}.tar.bz2";
|
2019-01-28 10:03:31 +00:00
|
|
|
sha256 = "1s97jb1r07ff40jnz8zianpn1f0c67hssn8ywdi2g7njfb4amjj8";
|
2016-03-18 00:03:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonPackages.distutils_extra
|
|
|
|
file
|
|
|
|
which
|
|
|
|
intltool
|
2018-12-02 11:41:15 +00:00
|
|
|
gobject-introspection
|
2016-03-18 00:03:13 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gnome3.gtk
|
|
|
|
gnome3.dconf
|
|
|
|
pythonPackages.pyxdg
|
|
|
|
pythonPackages.ptyprocess
|
2016-06-11 01:52:47 +01:00
|
|
|
pythonPackages.pycairo
|
2018-02-25 02:23:58 +00:00
|
|
|
hicolor-icon-theme
|
2016-03-18 00:03:13 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pythonPackages.pygobject3
|
|
|
|
pythonPackages.pexpect
|
|
|
|
xdg_utils
|
|
|
|
findutils
|
|
|
|
];
|
2016-06-11 01:52:47 +01:00
|
|
|
|
2018-02-12 16:43:12 +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
|
2016-03-18 00:03:13 +00:00
|
|
|
'';
|
|
|
|
|
2018-02-12 16:43:12 +00:00
|
|
|
# Disable check because there is no test in the source distribution
|
|
|
|
doCheck = false;
|
|
|
|
|
2016-03-18 00:03:13 +00:00
|
|
|
meta = with stdenv.lib; {
|
2018-08-31 15:11:38 +01:00
|
|
|
homepage = https://docs.xfce.org/apps/catfish/start;
|
2016-03-18 00:03:13 +00:00
|
|
|
description = "A handy file search tool";
|
|
|
|
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;
|
2018-03-14 21:52:41 +00:00
|
|
|
platforms = platforms.linux;
|
2016-03-18 00:03:13 +00:00
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|