nixpkgs/pkgs/applications/audio/mmtc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
924 B
Nix
Raw Normal View History

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";
version = "0.3.2";
2021-02-08 00:35:35 +03:00
src = fetchFromGitHub {
owner = "figsoda";
repo = pname;
rev = "v${version}";
sha256 = "sha256-gs6uytX4rm2JrJ4UbtHJDg+b+Z1ZjcsuUR0b13jQIy4=";
2021-02-08 00:35:35 +03:00
};
cargoSha256 = "sha256-7zV/AsSZHk99ROC1301nkwJ22dvh4afeCI//G1zWHu8=";
2021-02-21 02:04:22 +03:00
nativeBuildInputs = [ installShellFiles ];
2022-10-27 19:23:18 +03:00
postInstall = ''
installManPage artifacts/mmtc.1
installShellCompletion artifacts/mmtc.{bash,fish} --zsh artifacts/_mmtc
2021-02-21 02:04:22 +03:00
'';
2022-10-27 19:23:18 +03:00
GEN_ARTIFACTS = "artifacts";
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 ];
};
}