Merge pull request #213399 from zendo/go-musicfox
go-musicfox: init at 3.6.1
This commit is contained in:
commit
96d2f8329e
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 ];
|
||||
};
|
||||
}
|
|
@ -29020,6 +29020,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