presenterm: fix sixel feature support

This commit is contained in:
Pol Dellaiera 2025-05-22 17:50:48 +02:00 committed by Masum Reza
parent 8821c7fba8
commit a0022b5484

View file

@ -1,7 +1,9 @@
{ {
lib, lib,
stdenv,
rustPlatform, rustPlatform,
fetchFromGitHub, fetchFromGitHub,
lld,
libsixel, libsixel,
versionCheckHook, versionCheckHook,
nix-update-script, nix-update-script,
@ -18,13 +20,29 @@ rustPlatform.buildRustPackage (finalAttrs: {
hash = "sha256-vBEHk0gQe4kUTtH4qtc0jVfDvYGabnkJrwPxmxt10hs="; hash = "sha256-vBEHk0gQe4kUTtH4qtc0jVfDvYGabnkJrwPxmxt10hs=";
}; };
nativeBuildInputs = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [
lld
];
buildInputs = [ buildInputs = [
libsixel libsixel
]; ];
buildFeatures = [
"sixel"
];
useFetchCargoVendor = true; useFetchCargoVendor = true;
cargoHash = "sha256-u0wOWKAfzi1Fxmx6x2ckrIv/PKgtqKrDiDauD4/BY24="; cargoHash = "sha256-u0wOWKAfzi1Fxmx6x2ckrIv/PKgtqKrDiDauD4/BY24=";
env = lib.optionalAttrs (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) {
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
checkFeatures = [
"sixel"
];
checkFlags = [ checkFlags = [
# failed to load .tmpEeeeaQ: No such file or directory (os error 2) # failed to load .tmpEeeeaQ: No such file or directory (os error 2)
"--skip=external_snippet" "--skip=external_snippet"