1 { lib, stdenv, rustPlatform, fetchFromGitHub, installShellFiles }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 hash = "sha256-OqOmOujnyLTqwzNvLWudQi+xa5v37JTtyUXaItnpnfs=";
14 cargoHash = "sha256-WF4GHj/5VYrTUh1E3t29zbpSLjJ6g7RWVpLYqg9msZg=";
16 nativeBuildInputs = [ installShellFiles ];
18 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
19 installShellCompletion --cmd kondo \
20 --bash <($out/bin/kondo --completions bash) \
21 --fish <($out/bin/kondo --completions fish) \
22 --zsh <($out/bin/kondo --completions zsh)
26 description = "Save disk space by cleaning unneeded files from software projects";
27 homepage = "https://github.com/tbillington/kondo";
28 license = licenses.mit;
29 maintainers = with maintainers; [ Br1ght0ne ];
30 mainProgram = "kondo";