2021-12-06 16:07:01 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, installShellFiles }:
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "mmtc";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "0.3.1";
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "figsoda";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-12-17 10:02:37 +00:00
|
|
|
sha256 = "sha256-7jQwa4BfyI1CPnMt1YEP9rE6cok90FbEJpyLAPFuxtE=";
|
2021-02-13 14:23:35 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
cargoSha256 = "sha256-f18aXs8PyA0IaGnPG568ZB/oPsAO+U44WsoDNEgKKXk=";
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
postInstall = ''
|
|
|
|
installManPage artifacts/mmtc.1
|
|
|
|
installShellCompletion artifacts/mmtc.{bash,fish} --zsh artifacts/_mmtc
|
2021-02-22 21:28:39 +00:00
|
|
|
'';
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
GEN_ARTIFACTS = "artifacts";
|
2021-02-13 14:23: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 ];
|
|
|
|
};
|
|
|
|
}
|