Author: amiddelk
Date: Tue Jan 24 22:09:17 2012
New Revision: 31829
URL: https://nixos.org/websvn/nix/?rev=31829&sc=1
Log:
added kwooty: a binary newsreader (kde).
Added:
nixpkgs/trunk/pkgs/applications/networking/newsreaders/kwooty/
nixpkgs/trunk/pkgs/applications/networking/newsreaders/kwooty/default.nix
nixpkgs/trunk/pkgs/applications/networking/newsreaders/kwooty/searchPath.patch
Modified:
nixpkgs/trunk/pkgs/top-level/all-packages.nix
Added: nixpkgs/trunk/pkgs/applications/networking/newsreaders/kwooty/default.nix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/applications/networking/newsreaders/kwooty/default.nix
Tue Jan 24 22:09:17 2012 (r31829)
@@ -0,0 +1,38 @@
+{ stdenv, fetchurl, gcc, cmake, qt4, gettext
+, kdelibs, kdebase_workspace, perl
+, openssl, phonon, automoc4
+, libX11, libXext, libXft
+, unrar, p7zip, par2cmdline, coreutils
+}:
+
+let version = "0.8.0";
+ name = "kwooty-${version}";
+in stdenv.mkDerivation {
+ inherit name;
+
+ src = fetchurl {
+ url = "mirror://sourceforge/kwooty/${name}.tar.gz";
+ sha256 =
"bb50fb9b3d6c973f2abee62cfc11a7086900a4b676c12bf4e0a2adc170a977fc";
+ };
+
+ patches = [ ./searchPath.patch ];
+
+ postPatch = ''
+ echo "Changing paths to archive utilities to the nix store";
+ substituteInPlace "src/utility.cpp" \
+ --replace "/usr/bin/unrar" "${unrar}/bin" \
+ --replace "/usr/bin/unpar" "${par2cmdline}/bin" \
+ --replace "/usr/bin/7z" "${p7zip}/bin" \
+ --replace "/usr/bin/nice" "${coreutils}/bin/nice"
+ '';
+
+ buildInputs =
+ [ gcc perl cmake qt4 gettext automoc4 openssl
+ kdelibs kdebase_workspace phonon
+ libX11 libXext libXft
+ ];
+
+ meta = with stdenv.lib; {
+ description = "Binary news reader for KDE";
+ };
+}
Added:
nixpkgs/trunk/pkgs/applications/networking/newsreaders/kwooty/searchPath.patch
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++
nixpkgs/trunk/pkgs/applications/networking/newsreaders/kwooty/searchPath.patch
Tue Jan 24 22:09:17 2012 (r31829)
@@ -0,0 +1,19 @@
+--- kwooty-kwooty/src/utility.cpp 2012-01-24 22:22:45.091383072 +0100
++++ kwooty-kwooty/src/utility.cpp 2012-01-24 22:29:08.526208140 +0100
+@@ -299,6 +299,7 @@
+
+ QString programPathName;
+ QStringList searchPathList = Settings::searchPathList();
++ searchPathList << "/usr/bin/unpar" << "/usr/bin/unrar" << "/usr/bin/7z";
+
+ QStringList programsWithDifferentNames = programToSearch.split(";");
+
+@@ -363,7 +364,7 @@
+ QStringList niceProcessArgs;
+
+ // look for 'nice' location :
+- QString nicePath = KStandardDirs::findExe("nice");
++ QString nicePath = QString("/usr/bin/nice");
+ niceProcessArgs.append(nicePath);
+ niceProcessArgs.append("-n");
+
Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix Tue Jan 24 22:08:17
2012 (r31828)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix Tue Jan 24 22:09:17
2012 (r31829)
@@ -8251,6 +8251,8 @@
yakuake = callPackage ../applications/misc/yakuake { };
zanshin = callPackage ../applications/office/zanshin { };
+
+ kwooty = callPackage ../applications/networking/newsreaders/kwooty { };
};
redshift = callPackage ../applications/misc/redshift {
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits