Unverified Commit df6c2ecd authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

presenterm: Drop Sixel dependency (#491385)

parents 8102001e 4ae915c9
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -5,7 +5,6 @@
  fetchFromGitHub,
  makeBinaryWrapper,
  lld,
  libsixel,
  versionCheckHook,
  nix-update-script,
}:
@@ -31,10 +30,6 @@ rustPlatform.buildRustPackage (finalAttrs: {
      lld
    ];

  buildInputs = [
    libsixel
  ];

  cargoHash = "sha256-OlZXf8Wg32mXGDGbavLVf1ELoqqSmc8z9DNpvGOfAJ8=";

  env = lib.optionalAttrs (isDarwin && isx86_64) {
@@ -46,12 +41,6 @@ rustPlatform.buildRustPackage (finalAttrs: {
    "--skip=external_snippet"
  ];

  # sixel-sys is dynamically linked to libsixel
  postInstall = lib.optionalString isDarwin ''
    wrapProgram $out/bin/presenterm \
      --prefix DYLD_LIBRARY_PATH : "${lib.makeLibraryPath [ libsixel ]}"
  '';

  nativeInstallCheckInputs = [
    versionCheckHook
  ];