587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
51 lines
1,017 B
Nix
51 lines
1,017 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, alsa-lib
|
|
, flac
|
|
, nix-update-script
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-musicfox";
|
|
version = "4.3.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "go-musicfox";
|
|
repo = "go-musicfox";
|
|
rev = "v${version}";
|
|
hash = "sha256-J6R3T92cHFUkKwc+GKm612tVjglP2Tc/kDUmzUMhvio=";
|
|
};
|
|
|
|
deleteVendor = true;
|
|
|
|
vendorHash = "sha256-KSIdBEEvYaYcDIDmzfRO857I8FSN4Ajw6phAPQLYEqg=";
|
|
|
|
subPackages = [ "cmd/musicfox.go" ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/go-musicfox/go-musicfox/internal/types.AppVersion=${version}"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
alsa-lib
|
|
flac
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
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 ];
|
|
};
|
|
}
|