waylyrics: 0.2.19 -> 0.3.5

This commit is contained in:
aleksana 2024-04-26 21:04:32 +08:00
parent 0c97ced70e
commit 9ac9720bcc
2 changed files with 17 additions and 15 deletions

View file

@ -1783,8 +1783,7 @@ dependencies = [
[[package]]
name = "ksni"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b31b9cf486bcd22bcd09900b44538cf87b00f526fcd087d671a632dc0d271d0c"
source = "git+https://github.com/waylyrics/ksni.git#af6fa6e6e29b7cb3779f98c1ca3aaeb8744ef4c4"
dependencies = [
"dbus",
"dbus-codegen",
@ -2075,9 +2074,10 @@ dependencies = [
]
[[package]]
name = "ncmapi"
name = "ncmapi2"
version = "0.1.13"
source = "git+https://github.com/waylyrics/ncmapi-rs.git?rev=6095abf7#6095abf7e54eedbb716676d311e0741b4ac2482e"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dcd3c218f2db46fc0b26ac6263d3005b96c82d5ebec0d349c3c902eef8bd660c"
dependencies = [
"aes",
"base64",
@ -2610,7 +2610,8 @@ dependencies = [
[[package]]
name = "qqmusic-rs"
version = "0.1.0"
source = "git+https://github.com/waylyrics/qqmusic-rs.git?rev=22e66ba#22e66ba62e63d97c6dffb45400655404e6f06b93"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c7698cb357cfa1a75f5a2071469345ede01a6c4ee83a2ff2a88f9e481893f341"
dependencies = [
"serde",
"serde_json",
@ -3817,7 +3818,7 @@ checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96"
[[package]]
name = "waylyrics"
version = "0.2.19"
version = "0.3.5"
dependencies = [
"ahash 0.8.11",
"anyhow",
@ -3835,7 +3836,7 @@ dependencies = [
"md5",
"mimalloc",
"mpris",
"ncmapi",
"ncmapi2",
"once_cell",
"opencc-rust",
"qqmusic-rs",

View file

@ -9,20 +9,19 @@
rustPlatform.buildRustPackage rec {
pname = "waylyrics";
version = "0.2.19";
version = "0.3.5";
src = fetchFromGitHub {
owner = "poly000";
owner = "waylyrics";
repo = "waylyrics";
rev = "v${version}";
hash = "sha256-y8FBZ/BvCj7CBfQlNE1Ay2nuP41WC14dfTeOJhTbHYs=";
hash = "sha256-44O2+OLsBZhl0/0910RsdCe8cHt6UGhYF7CUfhsFQU8=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"ncmapi-0.1.13" = "sha256-gwFMmMzQywlsQC2GljgLwXoP2Cca0r24iEDmV0k/xG0=";
"qqmusic-rs-0.1.0" = "sha256-woLsO0n+m3EBUI+PRLio7iLp0UPQSliWK0djCSZEaZc=";
"ksni-0.2.1" = "sha256-kjirYZVDP9e7/933L7gwSgVrNInSTbsRCAfnhUqmcLI=";
};
};
@ -44,10 +43,12 @@ rustPlatform.buildRustPackage rec {
install -d $WAYLYRICS_THEME_PRESETS_DIR
cp -vr themes/* $WAYLYRICS_THEME_PRESETS_DIR
# Install desktop entry
install -Dm644 io.poly000.waylyrics.desktop -t $out/share/applications
install -Dm644 metainfo/io.github.waylyrics.Waylyrics.desktop -t $out/share/applications
# Install schema
install -Dm644 io.poly000.waylyrics.gschema.xml -t $out/share/gsettings-schemas/$name/glib-2.0/schemas
install -Dm644 metainfo/io.github.waylyrics.Waylyrics.gschema.xml -t $out/share/gsettings-schemas/$name/glib-2.0/schemas
glib-compile-schemas $out/share/gsettings-schemas/$name/glib-2.0/schemas/
# Install metainfo
install -Dm644 metainfo/io.github.waylyrics.Waylyrics.metainfo.xml -t $out/share/metainfo
# Install icons
install -d $out/share/icons
cp -vr res/icons/hicolor $out/share/icons/hicolor
@ -64,7 +65,7 @@ rustPlatform.buildRustPackage rec {
meta = with lib; {
description = "Desktop lyrics with QQ and NetEase Music source";
mainProgram = "waylyrics";
homepage = "https://github.com/poly000/waylyrics";
homepage = "https://github.com/waylyrics/waylyrics";
license = with licenses; [ mit cc-by-40 ];
maintainers = with maintainers; [ shadowrz aleksana ];
platforms = platforms.linux;