2023-02-02 18:25:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
2023-04-29 16:46:19 +00:00
|
|
|
, fetchFromGitHub
|
2023-02-02 18:25:31 +00:00
|
|
|
, pkg-config
|
|
|
|
, alsa-lib
|
|
|
|
, flac
|
|
|
|
}:
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
buildGoModule rec {
|
2023-02-02 18:25:31 +00:00
|
|
|
pname = "go-musicfox";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "4.0.5";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "anhoder";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-NAAl/XmJqRnJyOYNJqmMlCIiGsCsSH7gGTMbD46gpss=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
deleteVendor = true;
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
vendorHash = null;
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/musicfox.go" ];
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
2023-03-24 00:07:29 +00:00
|
|
|
"-X github.com/go-musicfox/go-musicfox/pkg/constants.AppVersion=${version}"
|
2023-02-02 18:25:31 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
alsa-lib
|
|
|
|
flac
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Terminal netease cloud music client written in Go";
|
|
|
|
homepage = "https://github.com/anhoder/go-musicfox";
|
|
|
|
license = licenses.mit;
|
|
|
|
mainProgram = "musicfox";
|
2023-04-29 16:46:19 +00:00
|
|
|
maintainers = with maintainers; [ zendo Ruixi-rebirth aleksana ];
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
}
|