{ installShellFiles, rustPlatform }:
rustPlatform.buildRustPackage {
pname = "tagdex";
version = "1.0.1";
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd tagdex \
--bash <("$out/bin/tagdex" complete bash) \
--fish <("$out/bin/tagdex" complete fish) \
--zsh <("$out/bin/tagdex" complete zsh)
'';
buildFeatures = [ "command" ];
meta = {
description = "An mp3 tag indexer written in Rust.";
homepage = "https://git.lwad.xyz/lwad/tagdex";
};
}