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

37 lines
1.1 KiB
Nix
Raw Normal View History

2019-08-29 18:44:33 -07:00
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, appstream-glib
, wrapGAppsHook, pythonPackages, gtk3, gnome3, gobject-introspection
, libnotify, libsecret, gst_all_1 }:
2015-04-21 19:15:13 -07:00
pythonPackages.buildPythonApplication rec {
2016-01-27 08:24:23 -08:00
pname = "pithos";
2019-08-29 18:44:33 -07:00
version = "1.4.1";
2015-04-21 19:15:13 -07:00
2015-09-23 05:00:26 -07:00
src = fetchFromGitHub {
2016-01-27 08:24:23 -08:00
owner = pname;
repo = pname;
2015-09-23 05:00:26 -07:00
rev = version;
2019-08-29 18:44:33 -07:00
sha256 = "0vaw0rfcdh4bsp9b8la9bs36kw0iwia54y5x060byxhff9av6nj4";
2015-04-21 19:15:13 -07:00
};
2019-08-29 18:44:33 -07:00
format = "other";
2016-05-28 07:10:06 -07:00
2015-04-21 19:15:13 -07:00
postPatch = ''
2019-08-29 18:44:33 -07:00
chmod +x meson_post_install.py
patchShebangs meson_post_install.py
2015-04-21 19:15:13 -07:00
'';
2019-08-29 18:44:33 -07:00
nativeBuildInputs = [ meson ninja pkgconfig appstream-glib wrapGAppsHook ];
2015-09-26 11:01:08 -07:00
2015-09-23 05:00:26 -07:00
propagatedBuildInputs =
2019-08-29 18:44:33 -07:00
[ gtk3 gobject-introspection libnotify libsecret gnome3.adwaita-icon-theme ] ++
2015-09-23 05:00:26 -07:00
(with gst_all_1; [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad ]) ++
(with pythonPackages; [ pygobject3 pylast ]);
2015-04-21 19:15:13 -07:00
meta = with stdenv.lib; {
2015-09-23 05:00:26 -07:00
description = "Pandora Internet Radio player for GNOME";
2015-09-26 10:58:01 -07:00
homepage = https://pithos.github.io/;
2015-04-21 19:15:13 -07:00
license = licenses.gpl3;
maintainers = with maintainers; [ obadz ];
2015-04-21 19:15:13 -07:00
};
}