mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
42 lines
1.2 KiB
Nix
42 lines
1.2 KiB
Nix
{ stdenv, lib, fetchFromGitHub, meson, ninja, pkg-config, appstream-glib
|
|
, wrapGAppsHook, pythonPackages, gtk3, gnome, gobject-introspection
|
|
, libnotify, libsecret, gst_all_1 }:
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
|
pname = "pithos";
|
|
version = "1.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-cFmsdQXfGxgpKe32dw1lgoANU9Drhu5Mecyz37BVP4g=";
|
|
};
|
|
|
|
format = "other";
|
|
|
|
postPatch = ''
|
|
chmod +x meson_post_install.py
|
|
patchShebangs meson_post_install.py
|
|
'';
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config appstream-glib wrapGAppsHook ];
|
|
|
|
propagatedNativeBuildInputs = [
|
|
gobject-introspection
|
|
];
|
|
|
|
propagatedBuildInputs =
|
|
[ gtk3 gobject-introspection libnotify libsecret gnome.adwaita-icon-theme ] ++
|
|
(with gst_all_1; [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad ]) ++
|
|
(with pythonPackages; [ pygobject3 pylast ]);
|
|
|
|
meta = with lib; {
|
|
broken = stdenv.isDarwin;
|
|
description = "Pandora Internet Radio player for GNOME";
|
|
homepage = "https://pithos.github.io/";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ obadz ];
|
|
};
|
|
}
|