3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/mmtc/default.nix

33 lines
943 B
Nix
Raw Normal View History

2021-11-08 19:10:15 +00:00
{ lib, rustPlatform, fetchFromGitHub, installShellFiles }:
2021-02-07 21:35:35 +00:00
rustPlatform.buildRustPackage rec {
pname = "mmtc";
2021-11-08 19:10:15 +00:00
version = "0.2.14";
2021-02-07 21:35:35 +00:00
src = fetchFromGitHub {
owner = "figsoda";
repo = pname;
rev = "v${version}";
2021-11-08 19:10:15 +00:00
sha256 = "sha256-g2JHY95vkG/Ep2eqz8guteF8fHUso/JuuVijNGkgykA=";
2021-02-07 21:35:35 +00:00
};
2021-11-08 19:10:15 +00:00
cargoSha256 = "sha256-tVjy/O5hfnQFC6to8VMGc39mEXhA5lwUIne6pVvDec0=";
2021-02-20 23:04:22 +00:00
nativeBuildInputs = [ installShellFiles ];
preFixup = ''
completions=($releaseDir/build/mmtc-*/out/completions)
2021-11-08 19:10:15 +00:00
installShellCompletion $completions/mmtc.{bash,fish} --zsh $completions/_mmtc
2021-02-20 23:04:22 +00:00
'';
2021-11-08 19:10:15 +00:00
GEN_COMPLETIONS = 1;
2021-02-07 21:35:35 +00:00
meta = with lib; {
description = "Minimal mpd terminal client that aims to be simple yet highly configurable";
homepage = "https://github.com/figsoda/mmtc";
changelog = "https://github.com/figsoda/mmtc/blob/v${version}/CHANGELOG.md";
license = licenses.mpl20;
maintainers = with maintainers; [ figsoda ];
};
}