diff options
Diffstat (limited to 'pkgs/applications/audio/gnome-podcasts/default.nix')
-rw-r--r-- | pkgs/applications/audio/gnome-podcasts/default.nix | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/pkgs/applications/audio/gnome-podcasts/default.nix b/pkgs/applications/audio/gnome-podcasts/default.nix index c7df55118c7..a053dda46a3 100644 --- a/pkgs/applications/audio/gnome-podcasts/default.nix +++ b/pkgs/applications/audio/gnome-podcasts/default.nix @@ -1,17 +1,17 @@ { stdenv +, lib , rustPlatform , fetchFromGitLab -, fetchpatch , meson , ninja , gettext -, cargo -, rustc , python3 -, pkgconfig +, pkg-config , glib , libhandy , gtk3 +, appstream-glib +, desktop-file-utils , dbus , openssl , sqlite @@ -19,33 +19,40 @@ , wrapGAppsHook }: -rustPlatform.buildRustPackage rec { - version = "0.4.8"; +stdenv.mkDerivation rec { pname = "gnome-podcasts"; + version = "0.4.9"; src = fetchFromGitLab { domain = "gitlab.gnome.org"; owner = "World"; repo = "podcasts"; rev = version; - sha256 = "0y2332zjq7vf1v38wzwz98fs19vpzy9kl7y0xbdzqr303l59hjb1"; + sha256 = "1ah59ac3xm3sqai8zhil8ar30pviw83cm8in1n4id77rv24xkvgm"; }; - cargoSha256 = "1jbii9k4bkrivdk1ffr6556q1sgk9j4jbzwnn8vbxmksyl1x328q"; + cargoDeps = rustPlatform.fetchCargoTarball { + inherit src; + name = "${pname}-${version}"; + sha256 = "1iihpfvkli09ysn46cnif53xizkwzk0m91bljmlzsygp3ip5i5yw"; + }; nativeBuildInputs = [ meson ninja - pkgconfig + pkg-config gettext - cargo - rustc python3 + rustPlatform.rust.cargo + rustPlatform.cargoSetupHook + rustPlatform.rust.rustc wrapGAppsHook glib ]; buildInputs = [ + appstream-glib + desktop-file-utils glib gtk3 libhandy @@ -55,14 +62,9 @@ rustPlatform.buildRustPackage rec { gst_all_1.gstreamer gst_all_1.gst-plugins-base gst_all_1.gst-plugins-bad + gst_all_1.gst-plugins-good ]; - # use Meson/Ninja phases - configurePhase = null; - buildPhase = null; - checkPhase = null; - installPhase = null; - # tests require network doCheck = false; @@ -71,10 +73,10 @@ rustPlatform.buildRustPackage rec { patchShebangs scripts/compile-gschema.py scripts/cargo.sh scripts/test.sh ''; - meta = with stdenv.lib; { + meta = with lib; { description = "Listen to your favorite podcasts"; homepage = "https://wiki.gnome.org/Apps/Podcasts"; - license = licenses.gpl3; + license = licenses.gpl3Plus; maintainers = teams.gnome.members; platforms = platforms.unix; }; |