nixpkgs/pkgs/desktops/xfce/applications/catfish/default.nix

67 lines
1.9 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, file, which, intltool, gobject-introspection,
2019-12-22 10:51:50 -08:00
findutils, xdg_utils, dconf, gtk3, python3Packages,
2018-02-12 08:43:12 -08:00
wrapGAppsHook
}:
2016-03-17 17:03:13 -07:00
2019-12-22 10:51:50 -08:00
python3Packages.buildPythonApplication rec {
2018-02-12 08:43:12 -08:00
pname = "catfish";
2020-02-01 02:20:12 -08:00
version = "1.4.13";
2016-03-17 17:03:13 -07:00
src = fetchurl {
2019-12-22 10:51:50 -08:00
url = "https://archive.xfce.org/src/apps/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
2020-02-01 02:20:12 -08:00
sha256 = "0fg89946z6n8njxn4mv29jksw8yavg8vypsljn9031pjwl3fmh2q";
2016-03-17 17:03:13 -07:00
};
nativeBuildInputs = [
2019-12-22 10:51:50 -08:00
python3Packages.distutils_extra
2016-03-17 17:03:13 -07:00
file
which
intltool
2019-10-01 10:43:36 -07:00
gobject-introspection # for setup hook populating GI_TYPELIB_PATH
2016-03-17 17:03:13 -07:00
wrapGAppsHook
];
buildInputs = [
gtk3
2019-11-30 15:11:47 -08:00
dconf
2019-12-22 10:51:50 -08:00
python3Packages.pyxdg
python3Packages.ptyprocess
python3Packages.pycairo
2019-10-01 10:43:36 -07:00
gobject-introspection # Temporary fix, see https://github.com/NixOS/nixpkgs/issues/56943
2016-03-17 17:03:13 -07:00
];
propagatedBuildInputs = [
2019-12-22 10:51:50 -08:00
python3Packages.dbus-python
python3Packages.pygobject3
python3Packages.pexpect
2016-03-17 17:03:13 -07:00
xdg_utils
findutils
];
2016-06-10 17:52:47 -07:00
2018-02-12 08:43:12 -08: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-17 17:03:13 -07:00
'';
2018-02-12 08:43:12 -08:00
# Disable check because there is no test in the source distribution
doCheck = false;
2016-03-17 17:03:13 -07:00
meta = with stdenv.lib; {
2020-02-01 02:20:12 -08:00
homepage = "https://docs.xfce.org/apps/catfish/start";
2019-10-01 10:43:36 -07:00
description = "Handy file search tool";
2016-03-17 17:03:13 -07:00
longDescription = ''
Catfish is a handy file searching tool. The interface is
intentionally lightweight and simple, using only GTK 3.
2016-03-17 17:03:13 -07:00
You can configure it to your needs by using several command line
options.
'';
license = licenses.gpl2Plus;
2018-03-14 14:52:41 -07:00
platforms = platforms.linux;
2016-03-17 17:03:13 -07:00
maintainers = [ maintainers.romildo ];
};
}