diff --git a/pkgs/by-name/pr/presenterm/package.nix b/pkgs/by-name/pr/presenterm/package.nix index 04aaa97736bf..fe868c832eb9 100644 --- a/pkgs/by-name/pr/presenterm/package.nix +++ b/pkgs/by-name/pr/presenterm/package.nix @@ -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"