From 852a00c0a920952ca6e2587c3ff9430cb31686b8 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sun, 29 Oct 2023 18:12:08 -0400 Subject: [PATCH 1/2] thud: 0.3.0 -> 0.3.1 --- pkgs/by-name/th/thud/package.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/th/thud/package.nix b/pkgs/by-name/th/thud/package.nix index f007174df860..ae64435a3c2c 100644 --- a/pkgs/by-name/th/thud/package.nix +++ b/pkgs/by-name/th/thud/package.nix @@ -6,16 +6,16 @@ rustPlatform.buildRustPackage rec { pname = "thud"; - version = "0.3.0"; + version = "0.3.1"; src = fetchFromGitHub { owner = "donovanglover"; repo = "thud"; rev = version; - hash = "sha256-3MxmVKs0huXPnL9mqDniaIarkAvJmwSOMii2ntXtOos="; + hash = "sha256-BmrJaZ1IKXjx4/QkBDZyXvTTaalfEOKsBp9ZCW8px7I="; }; - cargoHash = "sha256-Hk3HlcA253FAA9hw5p9W+Mvec84zLo7bEmM2/BbmjiM="; + cargoHash = "sha256-rmVVdes7GuGV+ClqJGxNIrs7oSwe8/ZHFD6OfP/UW7A="; nativeBuildInputs = [ installShellFiles @@ -25,12 +25,12 @@ rustPlatform.buildRustPackage rec { install -Dm644 assets/thud.thumbnailer $out/share/thumbnailers/thud.thumbnailer substituteInPlace $out/share/thumbnailers/thud.thumbnailer --replace "thud" "$out/bin/thud" - installManPage man/thud.1 + installManPage target/man/thud.1 installShellCompletion --cmd thud \ - --bash <(cat completions/thud.bash) \ - --fish <(cat completions/thud.fish) \ - --zsh <(cat completions/_thud) + --bash <(cat target/completions/thud.bash) \ + --fish <(cat target/completions/thud.fish) \ + --zsh <(cat target/completions/_thud) ''; meta = with lib; { From e9b4856537bf3a6c3a24a4e151ab275066f40b39 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Tue, 31 Oct 2023 11:16:53 -0400 Subject: [PATCH 2/2] thud: add passthru.updateScript --- pkgs/by-name/th/thud/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/th/thud/package.nix b/pkgs/by-name/th/thud/package.nix index ae64435a3c2c..5a4d3f68b2a5 100644 --- a/pkgs/by-name/th/thud/package.nix +++ b/pkgs/by-name/th/thud/package.nix @@ -2,6 +2,7 @@ , rustPlatform , fetchFromGitHub , installShellFiles +, nix-update-script }: rustPlatform.buildRustPackage rec { @@ -33,6 +34,8 @@ rustPlatform.buildRustPackage rec { --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";