biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / audio / mmtc / default.nix
blob8227d12bbcb5b55c3d9f060615d86b99df218519
1 { lib, rustPlatform, fetchFromGitHub, installShellFiles }:
3 rustPlatform.buildRustPackage rec {
4   pname = "mmtc";
5   version = "0.3.2";
7   src = fetchFromGitHub {
8     owner = "figsoda";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-gs6uytX4rm2JrJ4UbtHJDg+b+Z1ZjcsuUR0b13jQIy4=";
12   };
14   cargoSha256 = "sha256-7zV/AsSZHk99ROC1301nkwJ22dvh4afeCI//G1zWHu8=";
16   nativeBuildInputs = [ installShellFiles ];
18   postInstall = ''
19     installManPage artifacts/mmtc.1
20     installShellCompletion artifacts/mmtc.{bash,fish} --zsh artifacts/_mmtc
21   '';
23   GEN_ARTIFACTS = "artifacts";
25   meta = with lib; {
26     description = "Minimal mpd terminal client that aims to be simple yet highly configurable";
27     homepage = "https://github.com/figsoda/mmtc";
28     changelog = "https://github.com/figsoda/mmtc/blob/v${version}/CHANGELOG.md";
29     license = licenses.mpl20;
30     maintainers = with maintainers; [ figsoda ];
31     mainProgram = "mmtc";
32   };