2021-02-20 23:04:22 +00:00
|
|
|
{ fetchFromGitHub, installShellFiles, lib, rustPlatform }:
|
2021-02-07 21:35:35 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "mmtc";
|
2021-02-20 23:04:22 +00:00
|
|
|
version = "0.2.13";
|
2021-02-07 21:35:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "figsoda";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-02-20 23:04:22 +00:00
|
|
|
sha256 = "0ag87hgdg6fvk80fgznba0xjlcajks5w5s6y8lvwhz9irn2kq2rz";
|
2021-02-07 21:35:35 +00:00
|
|
|
};
|
|
|
|
|
2021-05-07 12:00:49 +01:00
|
|
|
cargoSha256 = "0lkx0zj9xc0rlrq91l4wydzp430hxlrqyq7ii8wq2fcan8ln22lv";
|
2021-02-20 23:04:22 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
completions=($releaseDir/build/mmtc-*/out/completions)
|
|
|
|
installShellCompletion ''${completions[0]}/mmtc.{bash,fish}
|
|
|
|
installShellCompletion --zsh ''${completions[0]}/_mmtc
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|