nixpkgs/pkgs/applications/search/catfish/default.nix

68 lines
1.8 KiB
Nix
Raw Normal View History

2018-02-12 16:43:12 +00:00
{ stdenv, fetchurl, file, which, intltool, gobjectIntrospection,
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";
2018-08-31 15:11:38 +01:00
minorver = "6";
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";
sha256 = "1gxdk5gx0gjq95jhdbpiq39cxpzd4vmw00a78f0wg2i6qlafxjp1";
2016-03-18 00:03:13 +00:00
};
nativeBuildInputs = [
pythonPackages.distutils_extra
file
which
intltool
2018-02-12 16:43:12 +00:00
gobjectIntrospection
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
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 ];
};
}