94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
79 lines
1.5 KiB
Nix
79 lines
1.5 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, cargo
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, glib
|
|
, gtk4
|
|
, appstream-glib
|
|
, desktop-file-utils
|
|
, libxml2
|
|
, rustc
|
|
, wrapGAppsHook4
|
|
, openssl
|
|
, dbus
|
|
, libadwaita
|
|
, gst_all_1
|
|
, Foundation
|
|
, SystemConfiguration
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "netease-cloud-music-gtk";
|
|
version = "2.0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gmg137";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-A3mvf6TZ3+aiWA6rg9G5NMaDKvO0VQzwIM1t0MaTpTc=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.importCargoLock {
|
|
lockFile = ./Cargo.lock;
|
|
outputHashes = {
|
|
"netease-cloud-music-api-1.0.2" = "sha256-7Yp2ZBg5wHnDPtdPLwZQnqcSlVuGCrXpV5M/dp/IaOE=";
|
|
};
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
glib # glib-compile-resources
|
|
gtk4 # gtk4-update-icon-cache
|
|
appstream-glib # appstream-util
|
|
desktop-file-utils # update-desktop-database
|
|
libxml2 # xmllint
|
|
wrapGAppsHook4
|
|
rustPlatform.cargoSetupHook
|
|
cargo
|
|
rustc
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
dbus
|
|
libadwaita
|
|
] ++ (with gst_all_1; [
|
|
gstreamer
|
|
gst-plugins-base
|
|
gst-plugins-good
|
|
gst-plugins-bad
|
|
gst-plugins-ugly
|
|
]) ++ lib.optionals stdenv.isDarwin [
|
|
Foundation
|
|
SystemConfiguration
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A Rust + GTK based netease cloud music player";
|
|
homepage = "https://github.com/gmg137/netease-cloud-music-gtk";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ diffumist ];
|
|
mainProgram = "netease-cloud-music-gtk4";
|
|
};
|
|
}
|