dae973cb59
GitOrigin-RevId: c90c4025bb6e0c4eaf438128a3b2640314b1c58d
50 lines
923 B
Nix
50 lines
923 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildGoModule
|
|
, clangStdenv
|
|
, pkg-config
|
|
, alsa-lib
|
|
, flac
|
|
}:
|
|
|
|
# gcc only supports objc on darwin
|
|
buildGoModule.override { stdenv = clangStdenv; } rec {
|
|
pname = "go-musicfox";
|
|
version = "3.7.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "anhoder";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-Wc9HFvBSLQA7jT+LJj+tyHzRbszhR2XD1/3C+SdrAGA=";
|
|
};
|
|
|
|
deleteVendor = true;
|
|
|
|
vendorHash = null;
|
|
|
|
subPackages = [ "cmd/musicfox.go" ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X 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 ];
|
|
};
|
|
}
|