92b3d6365d
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
32 lines
924 B
Nix
32 lines
924 B
Nix
{ lib, rustPlatform, fetchFromGitHub, installShellFiles }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "mmtc";
|
|
version = "0.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "figsoda";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-fWd349IDlN6XNv7MrqJeLwkmevZoKXLSz8a09YWsNcI=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-WrEC3zWwY1plOn8DrspbJFI3R/fE6yDQT2u2lVubbQU=";
|
|
|
|
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 ];
|
|
};
|
|
}
|