Skip to content

Commit

Permalink
catfish: init at 1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
romildo committed Mar 18, 2016
1 parent bb6d3f0 commit 00b5bd3
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
60 changes: 60 additions & 0 deletions pkgs/applications/search/catfish/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{ stdenv, fetchurl, file, which, intltool, findutils, xdg_utils, pycairo,
gnome3, pythonPackages, wrapGAppsHook }:

pythonPackages.buildPythonApplication rec {
majorver = "1.4";
minorver = "1";
version = "${majorver}.${minorver}";
name = "catfish-${version}";

src = fetchurl {
url = "https://launchpad.net/catfish-search/${majorver}/${version}/+download/${name}.tar.bz2";
sha256 = "0dc9xq1l1w22xk1hg63mgwr0920jqxrwfzmkhif01yms1m7vfdv8";
};

nativeBuildInputs = [
pythonPackages.distutils_extra
file
which
intltool
wrapGAppsHook
];

buildInputs = [
gnome3.gtk
gnome3.dconf
pythonPackages.pyxdg
pythonPackages.ptyprocess
pycairo
];

propagatedBuildInputs = [
pythonPackages.pygobject3
pythonPackages.pexpect
xdg_utils
findutils
];

preFixup = ''
for f in \
"$out/${pythonPackages.python.sitePackages}/catfish_lib/catfishconfig.py" \
"$out/share/applications/catfish.desktop"
do
substituteInPlace $f --replace "${pythonPackages.python}" "$out"
done
'';

meta = with stdenv.lib; {
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.
'';
homepage = https://launchpad.net/catfish-search;
license = licenses.gpl2Plus;
platforms = platforms.unix;
maintainers = [ maintainers.romildo ];
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11741,6 +11741,10 @@ let

carddav-util = callPackage ../tools/networking/carddav-util { };

catfish = callPackage ../applications/search/catfish {
pythonPackages = python3Packages;
};

cava = callPackage ../applications/audio/cava { };

cb2bib = callPackage ../applications/office/cb2bib {
Expand Down

0 comments on commit 00b5bd3

Please sign in to comment.