nixpkgs/pkgs/applications/audio/pithos/default.nix

36 lines
1.1 KiB
Nix
Raw Normal View History

2015-09-23 14:00:26 +02:00
{ fetchFromGitHub, stdenv, pythonPackages, gtk3, gobjectIntrospection, libnotify, gst_all_1 }:
2015-04-22 04:15:13 +02:00
pythonPackages.buildPythonPackage rec {
name = "pithos-${version}";
2015-09-23 14:00:26 +02:00
version = "1.1.1";
2015-04-22 04:15:13 +02:00
2015-09-23 14:00:26 +02:00
src = fetchFromGitHub {
owner = "pithos";
repo = "pithos";
rev = version;
sha256 = "0373z7g1wd3g1xl8m4ipx5n2ka67a2wcn387nyk8yvgdikm14jm3";
2015-04-22 04:15:13 +02:00
};
postPatch = ''
substituteInPlace setup.py --replace "/usr/share" "$out/share"
'';
2015-09-23 14:00:26 +02:00
propagatedBuildInputs =
[ gtk3 gobjectIntrospection libnotify ] ++
(with gst_all_1; [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad ]) ++
(with pythonPackages; [ pygobject3 pylast ]);
2015-04-22 04:15:13 +02:00
postInstall = ''
2015-09-23 14:00:26 +02:00
wrapProgram "$out/bin/pithos" \
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0" \
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH"
2015-04-22 04:15:13 +02:00
'';
meta = with stdenv.lib; {
2015-09-23 14:00:26 +02:00
description = "Pandora Internet Radio player for GNOME";
homepage = http://pithos.github.io/;
2015-04-22 04:15:13 +02:00
license = licenses.gpl3;
2015-09-26 19:56:54 +02:00
maintainers = with maintainers; [ obadz jgeerds ];
2015-04-22 04:15:13 +02:00
};
}