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