diff options
author | figsoda <figsoda@pm.me> | 2021-02-20 18:04:22 -0500 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2021-02-20 18:04:22 -0500 |
commit | 497ff776a6a388c7c842ade7b94cd14270b6d7b7 (patch) | |
tree | 127c3602d4424dd76469abed0e7f2eafb5e72fff | |
parent | 0d07997538a47ac9cdefb807b6b077c0782d9b7d (diff) |
mmtc: 0.2.12 -> 0.2.13
-rw-r--r-- | pkgs/applications/audio/mmtc/default.nix | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/pkgs/applications/audio/mmtc/default.nix b/pkgs/applications/audio/mmtc/default.nix index 0d1d2c5684f7e..4bd922c8fb6fe 100644 --- a/pkgs/applications/audio/mmtc/default.nix +++ b/pkgs/applications/audio/mmtc/default.nix @@ -1,17 +1,27 @@ -{ fetchFromGitHub, lib, rustPlatform }: +{ fetchFromGitHub, installShellFiles, lib, rustPlatform }: rustPlatform.buildRustPackage rec { pname = "mmtc"; - version = "0.2.12"; + version = "0.2.13"; src = fetchFromGitHub { owner = "figsoda"; repo = pname; rev = "v${version}"; - sha256 = "1chcnv8wql6v2vckpzvq6sxgpss7mnxaj008jdm8xalhw9d496s4"; + sha256 = "0ag87hgdg6fvk80fgznba0xjlcajks5w5s6y8lvwhz9irn2kq2rz"; }; - cargoSha256 = "06b0hag3s5irvi57n0hc97agfw4sw783lkkl1b26iap6mfbvrqma"; + cargoSha256 = "06xqh0mqbik00qyg8mn1ddbn15v3pdwvh1agghg22xgx53kmnxb3"; + + nativeBuildInputs = [ installShellFiles ]; + + preFixup = '' + completions=($releaseDir/build/mmtc-*/out/completions) + installShellCompletion ''${completions[0]}/mmtc.{bash,fish} + installShellCompletion --zsh ''${completions[0]}/_mmtc + ''; + + GEN_COMPLETIONS = "1"; meta = with lib; { description = "Minimal mpd terminal client that aims to be simple yet highly configurable"; |