Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

presenterm: fix `sixel` feature support

authored by Pol Dellaiera and committed by Masum Reza a0022b54 8821c7fb

+18
+18
pkgs/by-name/pr/presenterm/package.nix
··· 1 { 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 libsixel, 6 versionCheckHook, 7 nix-update-script, ··· 18 hash = "sha256-vBEHk0gQe4kUTtH4qtc0jVfDvYGabnkJrwPxmxt10hs="; 19 }; 20 21 buildInputs = [ 22 libsixel 23 ]; 24 25 useFetchCargoVendor = true; 26 cargoHash = "sha256-u0wOWKAfzi1Fxmx6x2ckrIv/PKgtqKrDiDauD4/BY24="; 27 28 checkFlags = [ 29 # failed to load .tmpEeeeaQ: No such file or directory (os error 2)
··· 1 { 2 lib, 3 + stdenv, 4 rustPlatform, 5 fetchFromGitHub, 6 + lld, 7 libsixel, 8 versionCheckHook, 9 nix-update-script, ··· 20 hash = "sha256-vBEHk0gQe4kUTtH4qtc0jVfDvYGabnkJrwPxmxt10hs="; 21 }; 22 23 + nativeBuildInputs = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ 24 + lld 25 + ]; 26 + 27 buildInputs = [ 28 libsixel 29 ]; 30 31 + buildFeatures = [ 32 + "sixel" 33 + ]; 34 + 35 useFetchCargoVendor = true; 36 cargoHash = "sha256-u0wOWKAfzi1Fxmx6x2ckrIv/PKgtqKrDiDauD4/BY24="; 37 + 38 + env = lib.optionalAttrs (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) { 39 + NIX_CFLAGS_LINK = "-fuse-ld=lld"; 40 + }; 41 + 42 + checkFeatures = [ 43 + "sixel" 44 + ]; 45 46 checkFlags = [ 47 # failed to load .tmpEeeeaQ: No such file or directory (os error 2)