forked from mirrors/nixpkgs
gpodder: Update to 3.8.0
This commit is contained in:
parent
013aedffea
commit
31f015f2e8
|
@ -1,5 +1,6 @@
|
||||||
{ pkgs, stdenv, fetchurl, python, buildPythonPackage, pythonPackages, mygpoclient, intltool,
|
{ pkgs, stdenv, fetchurl, python, buildPythonPackage, pythonPackages, mygpoclient, intltool,
|
||||||
ipodSupport ? true, libgpod, gpodderHome ? "", gpodderDownloadDir ? "" }:
|
ipodSupport ? true, libgpod, gpodderHome ? "", gpodderDownloadDir ? "",
|
||||||
|
gnome3, hicolor_icon_theme }:
|
||||||
|
|
||||||
with pkgs.lib;
|
with pkgs.lib;
|
||||||
|
|
||||||
|
@ -7,14 +8,18 @@ let
|
||||||
inherit (pythonPackages) coverage feedparser minimock sqlite3 dbus pygtk eyeD3;
|
inherit (pythonPackages) coverage feedparser minimock sqlite3 dbus pygtk eyeD3;
|
||||||
|
|
||||||
in buildPythonPackage rec {
|
in buildPythonPackage rec {
|
||||||
name = "gpodder-3.7.0";
|
name = "gpodder-3.8.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://gpodder.org/src/${name}.tar.gz";
|
url = "http://gpodder.org/src/${name}.tar.gz";
|
||||||
sha256 = "fa90ef4bdd3fd9eef95404f7f43f70912ae3ab4f8d24078484a2f3e11b14dc47";
|
sha256 = "0731f08f4270c81872b841b55200ae80feb4502706397d0085079471fb9a8fe4";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ coverage feedparser minimock sqlite3 mygpoclient intltool ];
|
buildInputs = [
|
||||||
|
coverage feedparser minimock sqlite3 mygpoclient intltool
|
||||||
|
gnome3.gnome_icon_theme gnome3.gnome_icon_theme_symbolic
|
||||||
|
hicolor_icon_theme
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ feedparser dbus mygpoclient sqlite3 pygtk eyeD3 ]
|
propagatedBuildInputs = [ feedparser dbus mygpoclient sqlite3 pygtk eyeD3 ]
|
||||||
++ stdenv.lib.optional ipodSupport libgpod;
|
++ stdenv.lib.optional ipodSupport libgpod;
|
||||||
|
@ -26,7 +31,30 @@ in buildPythonPackage rec {
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
wrapProgram $out/bin/gpodder \
|
wrapProgram $out/bin/gpodder \
|
||||||
${optionalString (gpodderHome != "") "--set GPODDER_HOME ${gpodderHome}"} \
|
${optionalString (gpodderHome != "") "--set GPODDER_HOME ${gpodderHome}"} \
|
||||||
${optionalString (gpodderDownloadDir != "") "--set GPODDER_DOWNLOAD_DIR ${gpodderDownloadDir}"}
|
${optionalString (gpodderDownloadDir != "") "--set GPODDER_DOWNLOAD_DIR ${gpodderDownloadDir}"} \
|
||||||
|
--prefix XDG_DATA_DIRS : "${gnome3.gnome_themes_standard}/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"
|
||||||
|
'';
|
||||||
|
|
||||||
|
# The `wrapPythonPrograms` script in the postFixup phase breaks gpodder. The
|
||||||
|
# easiest way to fix this is to call wrapPythonPrograms and then to clean up
|
||||||
|
# the wrapped file.
|
||||||
|
postFixup = ''
|
||||||
|
wrapPythonPrograms
|
||||||
|
|
||||||
|
if test -e $out/nix-support/propagated-build-inputs; then
|
||||||
|
ln -s $out/nix-support/propagated-build-inputs $out/nix-support/propagated-user-env-packages
|
||||||
|
fi
|
||||||
|
|
||||||
|
createBuildInputsPth build-inputs "$buildInputStrings"
|
||||||
|
for inputsfile in propagated-build-inputs propagated-native-build-inputs; do
|
||||||
|
if test -e $out/nix-support/$inputsfile; then
|
||||||
|
createBuildInputsPth $inputsfile "$(cat $out/nix-support/$inputsfile)"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
sed -i "$out/bin/..gpodder-wrapped-wrapped" -e '{
|
||||||
|
/import sys; sys.argv/d
|
||||||
|
}'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = "DESTDIR=/ PREFIX=$out make install";
|
installPhase = "DESTDIR=/ PREFIX=$out make install";
|
||||||
|
|
Loading…
Reference in a new issue