Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
obadz
committed
Apr 22, 2015
1 parent
2d8cfe7
commit ac182f0
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Based on Richard Wallace's post here: http://comments.gmane.org/gmane.linux.distributions.nixos/14734 | ||
|
||
{ fetchurl, stdenv, pythonPackages, gtk3, libnotify, gst_all_1 }: | ||
pythonPackages.buildPythonPackage rec { | ||
name = "pithos-${version}"; | ||
version = "1.0.1"; | ||
|
||
src = fetchurl { | ||
url = "https://github.com/pithos/pithos/archive/${version}.tar.gz"; | ||
sha256 = "67b83927d5111067aefbf034d23880f96b1a2d300464e8491efa80e97e67f50f"; | ||
}; | ||
|
||
postPatch = '' | ||
substituteInPlace setup.py --replace "/usr/share" "$out/share" | ||
''; | ||
|
||
buildInputs = with gst_all_1; [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad libnotify ]; | ||
|
||
pythonPath = with pythonPackages; [ pygobject3 dbus pylast ]; | ||
|
||
propogatedBuildInputs = pythonPath; | ||
|
||
postInstall = '' | ||
wrapProgram "$out/bin/pithos" --prefix GST_PLUGIN_SYSTEM_PATH_1_0 ":" "$GST_PLUGIN_SYSTEM_PATH_1_0" | ||
''; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Pandora player"; | ||
|
||
longDescription = '' | ||
Pandora Internet Radio player for GNOME | ||
''; | ||
|
||
homepage = http://pithos.github.io/ ; | ||
|
||
license = licenses.gpl3; | ||
|
||
maintainers = with maintainers; [ obadz ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters