mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 11:45:45 +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,
|
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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue