Commit bb0aced8 authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

displaylink: 6.1.0 -> 6.2.0

parent 209483ab
Loading
Loading
Loading
Loading
+11 −9
Original line number Diff line number Diff line
@@ -28,28 +28,28 @@ let
in
stdenv.mkDerivation (finalAttrs: {
  pname = "displaylink";
  version = "6.1.0-17";
  version = "6.2.0-30";

  src = requireFile rec {
    name = "displaylink-610.zip";
    hash = "sha256-RJgVrX+Y8Nvz106Xh+W9N9uRLC2VO00fBJeS8vs7fKw=";
    name = "displaylink-620.zip";
    hash = "sha256-JQO7eEz4pdoPkhcn9tIuy5R4KyfsCniuw6eXw/rLaYE=";
    message = ''
      In order to install the DisplayLink drivers, you must first
      comply with DisplayLink's EULA and download the binaries and
      sources from here:

      https://www.synaptics.com/products/displaylink-usb-graphics-software-ubuntu-61
      https://www.synaptics.com/products/displaylink-usb-graphics-software-ubuntu-62

      Once you have downloaded the file, please use the following
      commands and re-run the installation:

      mv \$PWD/"DisplayLink USB Graphics Software for Ubuntu6.1-EXE.zip" \$PWD/${name}
      mv \$PWD/"DisplayLink USB Graphics Software for Ubuntu6.2-EXE.zip" \$PWD/${name}
      nix-prefetch-url file://\$PWD/${name}

      Alternatively, you can use the following command to download the
      file directly:

      nix-prefetch-url --name ${name} https://www.synaptics.com/sites/default/files/exe_files/2024-10/DisplayLink%20USB%20Graphics%20Software%20for%20Ubuntu6.1-EXE.zip
      nix-prefetch-url --name ${name} https://www.synaptics.com/sites/default/files/exe_files/2025-09/DisplayLink%20USB%20Graphics%20Software%20for%20Ubuntu6.2-EXE.zip
    '';
  };

@@ -68,6 +68,7 @@ stdenv.mkDerivation (finalAttrs: {

  installPhase = ''
    runHook preInstall

    install -Dt $out/lib/displaylink *.spkg
    install -Dm755 ${bins}/DisplayLinkManager $out/bin/DisplayLinkManager
    mkdir -p $out/lib/udev/rules.d $out/share
@@ -81,17 +82,18 @@ stdenv.mkDerivation (finalAttrs: {

    # We introduce a dependency on the source file so that it need not be redownloaded everytime
    echo $src >> "$out/share/workspace_dependencies.pin"

    runHook postInstall
  '';

  dontStrip = true;
  dontPatchELF = true;

  meta = with lib; {
  meta = {
    description = "DL-7xxx, DL-6xxx, DL-5xxx, DL-41xx and DL-3x00 Driver for Linux";
    homepage = "https://www.displaylink.com/";
    hydraPlatforms = [ ];
    license = licenses.unfree;
    license = lib.licenses.unfree;
    mainProgram = "DisplayLinkManager";
    maintainers = [ ];
    platforms = [
@@ -99,6 +101,6 @@ stdenv.mkDerivation (finalAttrs: {
      "i686-linux"
      "aarch64-linux"
    ];
    sourceProvenance = with sourceTypes; [ binaryNativeCode ];
    sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
  };
})