8 rustPlatform.buildRustPackage rec {
12 src = fetchFromGitHub {
13 owner = "donovanglover";
16 hash = "sha256-BmrJaZ1IKXjx4/QkBDZyXvTTaalfEOKsBp9ZCW8px7I=";
19 cargoHash = "sha256-rmVVdes7GuGV+ClqJGxNIrs7oSwe8/ZHFD6OfP/UW7A=";
26 install -Dm644 assets/thud.thumbnailer $out/share/thumbnailers/thud.thumbnailer
27 substituteInPlace $out/share/thumbnailers/thud.thumbnailer --replace "thud" "$out/bin/thud"
29 installManPage target/man/thud.1
31 installShellCompletion --cmd thud \
32 --bash <(cat target/completions/thud.bash) \
33 --fish <(cat target/completions/thud.fish) \
34 --zsh <(cat target/completions/_thud)
37 passthru.updateScript = nix-update-script { };
40 description = "Generate directory thumbnails for GTK-based file browsers from images inside them";
41 homepage = "https://github.com/donovanglover/thud";
42 license = licenses.mit;
43 maintainers = with maintainers; [ donovanglover ];