From bb6d3f0b593f7670075451f6e16c4f8da4ac94e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo=20Malaquias?= Date: Thu, 17 Mar 2016 20:59:53 -0300 Subject: [PATCH 1/2] distutils_extra: 2.26 -> 2.39 --- pkgs/top-level/python-packages.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c2ef687d5874..3149b819f4c5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7821,16 +7821,18 @@ in modules // { }); distutils_extra = buildPythonPackage rec { - name = "distutils-extra-2.26"; + name = "distutils-extra-${version}"; + version = "2.39"; src = pkgs.fetchurl { - url = "http://launchpad.net/python-distutils-extra/trunk/2.26/+download/python-${name}.tar.gz"; - sha256 = "11a3d16efffb00c2b50f40c48531dadaf553ed7a36c5621fde437a16ca40f7ea"; + url = "http://launchpad.net/python-distutils-extra/trunk/${version}/+download/python-${name}.tar.gz"; + sha256 = "1bv3h2p9ffbzyddhi5sccsfwrm3i6yxzn0m06fdxkj2zsvs28gvj"; }; meta = { homepage = https://launchpad.net/python-distutils-extra; description = "Enhancements to Python's distutils"; + license = licenses.gpl2; }; }; From 00b5bd3fb31c43078e0996f536bfbcaf49491651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo=20Malaquias?= Date: Thu, 17 Mar 2016 21:03:13 -0300 Subject: [PATCH 2/2] catfish: init at 1.4.1 --- pkgs/applications/search/catfish/default.nix | 60 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++ 2 files changed, 64 insertions(+) create mode 100644 pkgs/applications/search/catfish/default.nix diff --git a/pkgs/applications/search/catfish/default.nix b/pkgs/applications/search/catfish/default.nix new file mode 100644 index 000000000000..795d804038d8 --- /dev/null +++ b/pkgs/applications/search/catfish/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index cad952ea4a27..6615dce14b3a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 {