From aac9f87364922c3f19a4b58c109fceade3354385 Mon Sep 17 00:00:00 2001 From: Gustavo Coutinho de Souza Date: Fri, 5 Jan 2024 16:20:50 -0300 Subject: [PATCH] wallust: add imagemagick dependency imagemagick is needed for the `wal` backend. --- pkgs/applications/misc/wallust/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/applications/misc/wallust/default.nix b/pkgs/applications/misc/wallust/default.nix index 1cd1184a2345..03630e5b82b4 100644 --- a/pkgs/applications/misc/wallust/default.nix +++ b/pkgs/applications/misc/wallust/default.nix @@ -2,6 +2,8 @@ , fetchFromGitea , rustPlatform , nix-update-script +, imagemagick +, makeWrapper }: let version = "2.9.0"; @@ -20,6 +22,13 @@ rustPlatform.buildRustPackage { cargoHash = "sha256-O9w18ae83mgF3zjk0WUMeu16Ap7CF2ubuPnOqeCt4Nw="; + nativeBuildInputs = [ makeWrapper ]; + + postFixup = '' + wrapProgram $out/bin/wallust \ + --prefix PATH : "${lib.makeBinPath [ imagemagick ]}" + ''; + passthru.updateScript = nix-update-script { }; meta = {