gnome-podcasts: port away from buildRustPackage
The new setup hooks compose better with Meson setup hooks. Also correct license.
This commit is contained in:
parent
e3b0f976d4
commit
c3b4d2d073
@ -1,11 +1,10 @@
|
|||||||
{ lib
|
{ stdenv
|
||||||
|
, lib
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchFromGitLab
|
, fetchFromGitLab
|
||||||
, meson
|
, meson
|
||||||
, ninja
|
, ninja
|
||||||
, gettext
|
, gettext
|
||||||
, cargo
|
|
||||||
, rustc
|
|
||||||
, python3
|
, python3
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, glib
|
, glib
|
||||||
@ -18,9 +17,9 @@
|
|||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.4.8";
|
|
||||||
pname = "gnome-podcasts";
|
pname = "gnome-podcasts";
|
||||||
|
version = "0.4.8";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
domain = "gitlab.gnome.org";
|
domain = "gitlab.gnome.org";
|
||||||
@ -30,16 +29,21 @@ rustPlatform.buildRustPackage rec {
|
|||||||
sha256 = "0y2332zjq7vf1v38wzwz98fs19vpzy9kl7y0xbdzqr303l59hjb1";
|
sha256 = "0y2332zjq7vf1v38wzwz98fs19vpzy9kl7y0xbdzqr303l59hjb1";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "1jbii9k4bkrivdk1ffr6556q1sgk9j4jbzwnn8vbxmksyl1x328q";
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||||
|
inherit src;
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
hash = "sha256-GInRA/V61r42spb/JYlM8+mATSkmOxdm2zHPRWaKcck=";
|
||||||
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
meson
|
meson
|
||||||
ninja
|
ninja
|
||||||
pkg-config
|
pkg-config
|
||||||
gettext
|
gettext
|
||||||
cargo
|
|
||||||
rustc
|
|
||||||
python3
|
python3
|
||||||
|
rustPlatform.rust.cargo
|
||||||
|
rustPlatform.cargoSetupHook
|
||||||
|
rustPlatform.rust.rustc
|
||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
glib
|
glib
|
||||||
];
|
];
|
||||||
@ -57,12 +61,6 @@ rustPlatform.buildRustPackage rec {
|
|||||||
gst_all_1.gst-plugins-good
|
gst_all_1.gst-plugins-good
|
||||||
];
|
];
|
||||||
|
|
||||||
# use Meson/Ninja phases
|
|
||||||
configurePhase = null;
|
|
||||||
buildPhase = null;
|
|
||||||
checkPhase = null;
|
|
||||||
installPhase = null;
|
|
||||||
|
|
||||||
# tests require network
|
# tests require network
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
@ -74,7 +72,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Listen to your favorite podcasts";
|
description = "Listen to your favorite podcasts";
|
||||||
homepage = "https://wiki.gnome.org/Apps/Podcasts";
|
homepage = "https://wiki.gnome.org/Apps/Podcasts";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = teams.gnome.members;
|
maintainers = teams.gnome.members;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user