mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
51 lines
960 B
Nix
51 lines
960 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.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "anhoder";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-gQPr+mCZ7tnASs/ibow1b0Qj3ppZhdgP4U1Vxo+FfE4=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|