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

69 lines
2.0 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, file, which, intltool, gobject-introspection,
findutils, xdg_utils, gnome3, gtk3, pythonPackages,
2018-02-12 16:43:12 +00:00
wrapGAppsHook
}:
2016-03-18 00:03:13 +00:00
pythonPackages.buildPythonApplication rec {
majorver = "1.4";
2019-10-01 18:43:36 +01:00
minorver = "10";
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-10-01 18:43:36 +01:00
sha256 = "0g9l5sv5d7wmyb23cvpz5mpvjnxiqjh25v9gr5qzhcah202a0wr5";
2016-03-18 00:03:13 +00:00
};
nativeBuildInputs = [
pythonPackages.distutils_extra
file
which
intltool
2019-10-01 18:43:36 +01:00
gobject-introspection # for setup hook populating GI_TYPELIB_PATH
2016-03-18 00:03:13 +00:00
wrapGAppsHook
];
buildInputs = [
gtk3
2016-03-18 00:03:13 +00:00
gnome3.dconf
pythonPackages.pyxdg
pythonPackages.ptyprocess
2016-06-11 01:52:47 +01:00
pythonPackages.pycairo
2019-10-01 18:43:36 +01:00
gobject-introspection # Temporary fix, see https://github.com/NixOS/nixpkgs/issues/56943
2016-03-18 00:03:13 +00:00
];
propagatedBuildInputs = [
2019-10-01 18:43:36 +01:00
pythonPackages.dbus-python
2016-03-18 00:03:13 +00:00
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;
2019-10-01 18:43:36 +01:00
description = "Handy file search tool";
2016-03-18 00:03:13 +00:00
longDescription = ''
Catfish is a handy file searching tool. The interface is
intentionally lightweight and simple, using only GTK 3.
2016-03-18 00:03:13 +00:00
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 ];
};
}