summary refs log tree commit diff
path: root/pkgs/applications/audio/pithos
diff options
context:
space:
mode:
authorobadz <dav-github@odav.org>2015-04-22 03:15:13 +0100
committerobadz <dav-github@odav.org>2015-04-22 04:32:38 +0100
commitac182f0a9394f73227924d9791fffecfe22a8640 (patch)
treeced1f1d908bfc773389afdc22bcef81748dda29c /pkgs/applications/audio/pithos
parent2d8cfe76a9e4f05e391d30f1654d45dee5993b8a (diff)
downloadnixpkgs-ac182f0a9394f73227924d9791fffecfe22a8640.tar
nixpkgs-ac182f0a9394f73227924d9791fffecfe22a8640.tar.gz
nixpkgs-ac182f0a9394f73227924d9791fffecfe22a8640.tar.bz2
nixpkgs-ac182f0a9394f73227924d9791fffecfe22a8640.tar.lz
nixpkgs-ac182f0a9394f73227924d9791fffecfe22a8640.tar.xz
nixpkgs-ac182f0a9394f73227924d9791fffecfe22a8640.tar.zst
nixpkgs-ac182f0a9394f73227924d9791fffecfe22a8640.zip
add pithos 1.0.1
Diffstat (limited to 'pkgs/applications/audio/pithos')
-rw-r--r--pkgs/applications/audio/pithos/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/applications/audio/pithos/default.nix b/pkgs/applications/audio/pithos/default.nix
new file mode 100644
index 00000000000..bb863d2501c
--- /dev/null
+++ b/pkgs/applications/audio/pithos/default.nix
@@ -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 ];
+  };
+}