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