lol

Merge pull request #10004 from obadz/pithos

Pithos

+16 -21
+16 -21
pkgs/applications/audio/pithos/default.nix
··· 1 - # Based on Richard Wallace's post here: http://comments.gmane.org/gmane.linux.distributions.nixos/14734 1 + { fetchFromGitHub, stdenv, pythonPackages, gtk3, gobjectIntrospection, libnotify, gst_all_1 }: 2 2 3 - { fetchurl, stdenv, pythonPackages, gtk3, libnotify, gst_all_1 }: 4 3 pythonPackages.buildPythonPackage rec { 5 4 name = "pithos-${version}"; 6 - version = "1.0.1"; 5 + version = "1.1.1"; 7 6 8 - src = fetchurl { 9 - url = "https://github.com/pithos/pithos/archive/${version}.tar.gz"; 10 - sha256 = "67b83927d5111067aefbf034d23880f96b1a2d300464e8491efa80e97e67f50f"; 7 + src = fetchFromGitHub { 8 + owner = "pithos"; 9 + repo = "pithos"; 10 + rev = version; 11 + sha256 = "0373z7g1wd3g1xl8m4ipx5n2ka67a2wcn387nyk8yvgdikm14jm3"; 11 12 }; 12 13 13 14 postPatch = '' 14 15 substituteInPlace setup.py --replace "/usr/share" "$out/share" 15 16 ''; 16 17 17 - buildInputs = with gst_all_1; [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad libnotify ]; 18 - 19 - pythonPath = with pythonPackages; [ pygobject3 dbus pylast ]; 20 - 21 - propogatedBuildInputs = pythonPath; 18 + propagatedBuildInputs = 19 + [ gtk3 gobjectIntrospection libnotify ] ++ 20 + (with gst_all_1; [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad ]) ++ 21 + (with pythonPackages; [ pygobject3 pylast ]); 22 22 23 23 postInstall = '' 24 - wrapProgram "$out/bin/pithos" --prefix GST_PLUGIN_SYSTEM_PATH_1_0 ":" "$GST_PLUGIN_SYSTEM_PATH_1_0" 24 + wrapProgram "$out/bin/pithos" \ 25 + --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0" \ 26 + --prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" 25 27 ''; 26 28 27 29 meta = with stdenv.lib; { 28 - description = "Pandora player"; 29 - 30 - longDescription = '' 31 - Pandora Internet Radio player for GNOME 32 - ''; 33 - 34 - homepage = http://pithos.github.io/ ; 35 - 30 + description = "Pandora Internet Radio player for GNOME"; 31 + homepage = http://pithos.github.io/; 36 32 license = licenses.gpl3; 37 - 38 33 maintainers = with maintainers; [ obadz ]; 39 34 }; 40 35 }