chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / th / thud / package.nix
blob5a4d3f68b2a584dfff7836ccf577fe1fb64506ba
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , installShellFiles
5 , nix-update-script
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "thud";
10   version = "0.3.1";
12   src = fetchFromGitHub {
13     owner = "donovanglover";
14     repo = "thud";
15     rev = version;
16     hash = "sha256-BmrJaZ1IKXjx4/QkBDZyXvTTaalfEOKsBp9ZCW8px7I=";
17   };
19   cargoHash = "sha256-rmVVdes7GuGV+ClqJGxNIrs7oSwe8/ZHFD6OfP/UW7A=";
21   nativeBuildInputs = [
22     installShellFiles
23   ];
25   postInstall = ''
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)
35   '';
37   passthru.updateScript = nix-update-script { };
39   meta = with lib; {
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 ];
44     mainProgram = "thud";
45   };