nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 47 lines 1.2 kB view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 installShellFiles, 6 nix-update-script, 7}: 8 9rustPlatform.buildRustPackage rec { 10 pname = "thud"; 11 version = "0.3.1"; 12 13 src = fetchFromGitHub { 14 owner = "donovanglover"; 15 repo = "thud"; 16 rev = version; 17 hash = "sha256-BmrJaZ1IKXjx4/QkBDZyXvTTaalfEOKsBp9ZCW8px7I="; 18 }; 19 20 cargoHash = "sha256-J7YioL8AIhoaPsYPzOXbwz76sMmBbDI/eql1HgDFgCU="; 21 22 nativeBuildInputs = [ 23 installShellFiles 24 ]; 25 26 postInstall = '' 27 install -Dm644 assets/thud.thumbnailer $out/share/thumbnailers/thud.thumbnailer 28 substituteInPlace $out/share/thumbnailers/thud.thumbnailer --replace "thud" "$out/bin/thud" 29 30 installManPage target/man/thud.1 31 32 installShellCompletion --cmd thud \ 33 --bash <(cat target/completions/thud.bash) \ 34 --fish <(cat target/completions/thud.fish) \ 35 --zsh <(cat target/completions/_thud) 36 ''; 37 38 passthru.updateScript = nix-update-script { }; 39 40 meta = { 41 description = "Generate directory thumbnails for GTK-based file browsers from images inside them"; 42 homepage = "https://github.com/donovanglover/thud"; 43 license = lib.licenses.mit; 44 maintainers = with lib.maintainers; [ donovanglover ]; 45 mainProgram = "thud"; 46 }; 47}