depot/third_party/nixpkgs/pkgs/applications/audio/go-musicfox/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

53 lines
1 KiB
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, pkg-config
, flac
, stdenv
, alsa-lib
, nix-update-script
}:
buildGoModule rec {
pname = "go-musicfox";
version = "4.4.1";
src = fetchFromGitHub {
owner = "go-musicfox";
repo = "go-musicfox";
rev = "v${version}";
hash = "sha256-pIfQ0ufn8W0opm+N6IPFBPWNxNWMOU7FudPtIFop51c=";
};
deleteVendor = true;
vendorHash = "sha256-ey78zeCSEuRgteG5ZRb4uO88E6lwEgqSxKfjJg3NGT4=";
subPackages = [ "cmd/musicfox.go" ];
ldflags = [
"-s"
"-w"
"-X github.com/go-musicfox/go-musicfox/internal/types.AppVersion=${version}"
];
nativeBuildInputs = [
pkg-config
];
buildInputs = [
flac
] ++ lib.optionals stdenv.isLinux [
alsa-lib
];
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 ];
};
}