3132d4e2f2
Diff: https://github.com/figsoda/mmtc/compare/v0.3.0...v0.3.1 Changelog: https://github.com/figsoda/mmtc/blob/v0.3.1/CHANGELOG.md
32 lines
924 B
Nix
32 lines
924 B
Nix
{ lib, rustPlatform, fetchFromGitHub, installShellFiles }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "mmtc";
|
|
version = "0.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "figsoda";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-7jQwa4BfyI1CPnMt1YEP9rE6cok90FbEJpyLAPFuxtE=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-f18aXs8PyA0IaGnPG568ZB/oPsAO+U44WsoDNEgKKXk=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
|
installManPage artifacts/mmtc.1
|
|
installShellCompletion artifacts/mmtc.{bash,fish} --zsh artifacts/_mmtc
|
|
'';
|
|
|
|
GEN_ARTIFACTS = "artifacts";
|
|
|
|
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 ];
|
|
};
|
|
}
|