3
0
Fork 0
forked from mirrors/nixpkgs
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 18:51:50 +00:00
findutils, xdg_utils, dconf, gtk3, python3Packages,
2018-02-12 16:43:12 +00:00
wrapGAppsHook
}:
2016-03-18 00:03:13 +00:00
2019-12-22 18:51:50 +00:00
python3Packages.buildPythonApplication rec {
2018-02-12 16:43:12 +00:00
pname = "catfish";
2020-02-01 10:20:12 +00:00
version = "1.4.13";
2016-03-18 00:03:13 +00:00
src = fetchurl {
2019-12-22 18:51:50 +00:00
url = "https://archive.xfce.org/src/apps/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
2020-02-01 10:20:12 +00:00
sha256 = "0fg89946z6n8njxn4mv29jksw8yavg8vypsljn9031pjwl3fmh2q";
2016-03-18 00:03:13 +00:00
};
nativeBuildInputs = [
2019-12-22 18:51:50 +00:00
python3Packages.distutils_extra
2016-03-18 00:03:13 +00:00
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
2019-11-30 23:11:47 +00:00
dconf
2019-12-22 18:51:50 +00:00
python3Packages.pyxdg
python3Packages.ptyprocess
python3Packages.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-12-22 18:51:50 +00:00
python3Packages.dbus-python
python3Packages.pygobject3
python3Packages.pexpect
2016-03-18 00:03:13 +00:00
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; {
2020-02-01 10:20:12 +00: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 ];
};
}