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 1 { 2 2 lib, 3 + stdenv, 3 4 rustPlatform, 4 5 fetchFromGitHub, 6 + lld, 5 7 libsixel, 6 8 versionCheckHook, 7 9 nix-update-script, ··· 18 20 hash = "sha256-vBEHk0gQe4kUTtH4qtc0jVfDvYGabnkJrwPxmxt10hs="; 19 21 }; 20 22 23 + nativeBuildInputs = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ 24 + lld 25 + ]; 26 + 21 27 buildInputs = [ 22 28 libsixel 23 29 ]; 24 30 31 + buildFeatures = [ 32 + "sixel" 33 + ]; 34 + 25 35 useFetchCargoVendor = true; 26 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 + ]; 27 45 28 46 checkFlags = [ 29 47 # failed to load .tmpEeeeaQ: No such file or directory (os error 2)