Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "thud";
|
|
version = "0.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "donovanglover";
|
|
repo = "thud";
|
|
rev = version;
|
|
hash = "sha256-BmrJaZ1IKXjx4/QkBDZyXvTTaalfEOKsBp9ZCW8px7I=";
|
|
};
|
|
|
|
cargoHash = "sha256-J7YioL8AIhoaPsYPzOXbwz76sMmBbDI/eql1HgDFgCU=";
|
|
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
];
|
|
|
|
postInstall = ''
|
|
install -Dm644 assets/thud.thumbnailer $out/share/thumbnailers/thud.thumbnailer
|
|
substituteInPlace $out/share/thumbnailers/thud.thumbnailer --replace "thud" "$out/bin/thud"
|
|
|
|
installManPage target/man/thud.1
|
|
|
|
installShellCompletion --cmd thud \
|
|
--bash <(cat target/completions/thud.bash) \
|
|
--fish <(cat target/completions/thud.fish) \
|
|
--zsh <(cat target/completions/_thud)
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
description = "Generate directory thumbnails for GTK-based file browsers from images inside them";
|
|
homepage = "https://github.com/donovanglover/thud";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ donovanglover ];
|
|
mainProgram = "thud";
|
|
};
|
|
}
|