Files
nixpkgs/pkgs/by-name/go/go-musicfox/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

60 lines
1.1 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
pkg-config,
flac,
stdenv,
alsa-lib,
nix-update-script,
}:
buildGoModule rec {
pname = "go-musicfox";
version = "4.7.1";
src = fetchFromGitHub {
owner = "go-musicfox";
repo = "go-musicfox";
rev = "v${version}";
hash = "sha256-jrrxG26OKOUiUzv12Td8Vy12gnj9+mHog/vZSaTwqmw=";
};
deleteVendor = true;
vendorHash = "sha256-TjPJBP1p2j9K10I87RB7KnwKfO3h2K6WFMZqveMUMkw=";
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.hostPlatform.isLinux [
alsa-lib
];
passthru.updateScript = nix-update-script { };
meta = {
description = "Terminal netease cloud music client written in Go";
homepage = "https://github.com/anhoder/go-musicfox";
license = lib.licenses.mit;
mainProgram = "musicfox";
maintainers = with lib.maintainers; [
zendo
Ruixi-rebirth
aleksana
];
};
}