mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
2e0589b4ca
Upstream changes to the build system required adjusting many packages' dependencies. On the Nixpkgs side, we no longer propagate the dependency on cmake (to reduce closure size), so downstream dependencies had to be adjusted for most packages that depend on kdelibs.
39 lines
1.0 KiB
Nix
39 lines
1.0 KiB
Nix
{ stdenv, fetchurl, cmake, qt4, gettext
|
|
, kdelibs, kdebase_workspace, perl
|
|
, openssl, phonon, automoc4
|
|
, libX11, libXext, libXft
|
|
, unrar, p7zip, par2cmdline, coreutils
|
|
}:
|
|
|
|
let version = "1.1.0";
|
|
name = "kwooty-${version}";
|
|
in stdenv.mkDerivation {
|
|
inherit name;
|
|
|
|
src = fetchurl {
|
|
url = "http://kde-apps.org/CONTENT/content-files/114385-${name}.tar.gz";
|
|
sha256 = "10a9asjv6ja1xdjli2399dyka2rbia3qdm5bdpmcng6xdsbhx3ap";
|
|
};
|
|
|
|
patches = [ ./0001-search-paths.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 =
|
|
[ stdenv perl cmake qt4 gettext automoc4 openssl
|
|
kdelibs kdebase_workspace phonon
|
|
libX11 libXext libXft
|
|
];
|
|
|
|
meta = {
|
|
description = "Binary news reader of KDE";
|
|
};
|
|
}
|