3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/xfce/applications/catfish/default.nix

68 lines
1.9 KiB
Nix
Raw Normal View History

{ lib, fetchurl, file, which, intltool, gobject-introspection,
2021-08-08 22:01:11 +01:00
findutils, xdg-utils, dconf, gtk3, python3Packages, xfconf,
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";
2021-10-10 21:34:50 +01:00
version = "4.16.3";
2016-03-18 00:03:13 +00:00
src = fetchurl {
2021-01-15 13:21:58 +00:00
url = "https://archive.xfce.org/src/apps/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
2021-10-10 21:34:50 +01:00
sha256 = "sha256-6amaYtEJgTkVCN1D88v6LVCmm9a30e7vfTC6TGc9z9o=";
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
2021-02-01 08:05:09 +00:00
xdg-utils
2016-03-18 00:03:13 +00:00
findutils
2021-08-08 22:01:11 +01:00
xfconf
2016-03-18 00:03:13 +00:00
];
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;
meta = with 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 ];
};
}