c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
48 lines
885 B
Nix
48 lines
885 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, alsa-lib
|
|
, flac
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-musicfox";
|
|
version = "4.0.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "anhoder";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-NAAl/XmJqRnJyOYNJqmMlCIiGsCsSH7gGTMbD46gpss=";
|
|
};
|
|
|
|
deleteVendor = true;
|
|
|
|
vendorHash = null;
|
|
|
|
subPackages = [ "cmd/musicfox.go" ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/go-musicfox/go-musicfox/pkg/constants.AppVersion=${version}"
|
|
];
|
|
|
|
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";
|
|
maintainers = with maintainers; [ zendo Ruixi-rebirth aleksana ];
|
|
};
|
|
}
|