mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
presenterm: fix sixel
feature support
This commit is contained in:
parent
8821c7fba8
commit
a0022b5484
1 changed files with 18 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue