From e74437b00ed74893c81835ec4358793b3f205c73 Mon Sep 17 00:00:00 2001 From: Luminar Leaf <80571430+LuminarLeaf@users.noreply.github.com> Date: Tue, 23 Jun 2026 17:19:01 +0530 Subject: [PATCH] allmytoes: wrap for mime database Signed-off-by: Luminar Leaf <80571430+LuminarLeaf@users.noreply.github.com> --- pkgs/by-name/al/allmytoes/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/al/allmytoes/package.nix b/pkgs/by-name/al/allmytoes/package.nix index afe3ce8bfc12..6db99b1f0baf 100644 --- a/pkgs/by-name/al/allmytoes/package.nix +++ b/pkgs/by-name/al/allmytoes/package.nix @@ -2,6 +2,8 @@ lib, nix-update-script, rustPlatform, + makeWrapper, + shared-mime-info, fetchFromGitLab, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -15,8 +17,14 @@ rustPlatform.buildRustPackage (finalAttrs: { hash = "sha256-BYKcDJN/uKESj0pnb2xvrx1lO6rOGdi+PVT6ywZqjbQ="; }; + nativeBuildInputs = [ makeWrapper ]; + cargoHash = "sha256-Pzbruv1E4mMohw//lf1JBoK+4BHDJVr4/9xXE4FrWbA=="; + postInstall = '' + wrapProgram "$out/bin/allmytoes" --prefix XDG_DATA_DIRS : "${shared-mime-info}/share" + ''; + passthru.updateScript = nix-update-script { }; __structuredAttrs = true;