go-musicfox: init at 3.6.1
This commit is contained in:
parent
99563190d5
commit
b5158decda
2 changed files with 52 additions and 0 deletions
50
pkgs/applications/audio/go-musicfox/default.nix
Normal file
50
pkgs/applications/audio/go-musicfox/default.nix
Normal file
|
@ -0,0 +1,50 @@
|
|||
{ 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.6.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "anhoder";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-iinEo+HrcNM3gx1iUqe1duRd45PrYgVybRt9NKphwuY=";
|
||||
};
|
||||
|
||||
deleteVendor = true;
|
||||
|
||||
vendorHash = "sha256-DbdAEvcspTYMYMvc5IBEUtQAJMW8JZpNi0UA/DvzGFo=";
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -28977,6 +28977,8 @@ with pkgs;
|
|||
|
||||
go-motion = callPackage ../development/tools/go-motion { };
|
||||
|
||||
go-musicfox = callPackage ../applications/audio/go-musicfox { };
|
||||
|
||||
gpg-mdp = callPackage ../applications/misc/gpg-mdp { };
|
||||
|
||||
greenfoot = callPackage ../applications/editors/greenfoot {
|
||||
|
|
Loading…
Reference in a new issue