2021-11-08 22:10:15 +03:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, installShellFiles }:
|
2021-02-08 00:35:35 +03:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "mmtc";
|
2022-09-30 01:43:35 +03:00
|
|
|
version = "0.2.15";
|
2021-02-08 00:35:35 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "figsoda";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-09-30 01:43:35 +03:00
|
|
|
sha256 = "sha256-GQ1SoZE74o8fsXHVdjdEMbdUeefyPb4FXxidcHCy180=";
|
2021-02-08 00:35:35 +03:00
|
|
|
};
|
|
|
|
|
2022-09-30 01:43:35 +03:00
|
|
|
cargoSha256 = "sha256-2IcOwjYTRl2tCB/YAuDACpgaRKZ/21IKWpVs+koYH3k=";
|
2021-02-21 02:04:22 +03:00
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
completions=($releaseDir/build/mmtc-*/out/completions)
|
2021-11-08 22:10:15 +03:00
|
|
|
installShellCompletion $completions/mmtc.{bash,fish} --zsh $completions/_mmtc
|
2021-02-21 02:04:22 +03:00
|
|
|
'';
|
|
|
|
|
2021-11-08 22:10:15 +03:00
|
|
|
GEN_COMPLETIONS = 1;
|
2021-02-08 00:35:35 +03: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 ];
|
|
|
|
};
|
|
|
|
}
|