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

68 lines
1.8 KiB
Nix
Raw Normal View History

2018-02-12 17:43:12 +01:00
{ stdenv, fetchurl, file, which, intltool, gobjectIntrospection,
findutils, xdg_utils, gnome3, pythonPackages, hicolor-icon-theme,
2018-02-12 17:43:12 +01:00
wrapGAppsHook
}:
2016-03-18 01:03:13 +01:00
pythonPackages.buildPythonApplication rec {
majorver = "1.4";
2018-02-12 17:43:12 +01:00
minorver = "4";
2016-03-18 01:03:13 +01:00
version = "${majorver}.${minorver}";
2018-02-12 17:43:12 +01:00
pname = "catfish";
2016-03-18 01:03:13 +01:00
src = fetchurl {
2018-02-12 17:43:12 +01:00
url = "https://launchpad.net/catfish-search/${majorver}/${version}/+download/${pname}-${version}.tar.gz";
sha256 = "1mw7py6si6y88jblmzm04hf049bpww7h87k2wypq07zm1dw55m52";
2016-03-18 01:03:13 +01:00
};
nativeBuildInputs = [
pythonPackages.distutils_extra
file
which
intltool
2018-02-12 17:43:12 +01:00
gobjectIntrospection
2016-03-18 01:03:13 +01:00
wrapGAppsHook
];
buildInputs = [
gnome3.gtk
gnome3.dconf
pythonPackages.pyxdg
pythonPackages.ptyprocess
2016-06-11 02:52:47 +02:00
pythonPackages.pycairo
hicolor-icon-theme
2016-03-18 01:03:13 +01:00
];
propagatedBuildInputs = [
pythonPackages.pygobject3
pythonPackages.pexpect
xdg_utils
findutils
];
2016-06-11 02:52:47 +02:00
2018-02-12 17:43:12 +01: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 01:03:13 +01:00
'';
2018-02-12 17:43:12 +01:00
# Disable check because there is no test in the source distribution
doCheck = false;
2016-03-18 01:03:13 +01:00
meta = with stdenv.lib; {
2018-02-12 17:43:12 +01:00
homepage = https://launchpad.net/catfish-search;
2016-03-18 01:03:13 +01: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;
platforms = platforms.unix;
maintainers = [ maintainers.romildo ];
};
}