From 48291b066d6eeef9b935314fab6acdd6015b47d9 Mon Sep 17 00:00:00 2001 From: "Sang Hak (Andy) Chun" Date: Wed, 16 Aug 2017 21:24:28 -0700 Subject: [PATCH] displaylink: use requireFile instead of fetchurl The direct link used with fetchurl is no longer a direct link (see #28279) Users will need to accept a EULA and add the source themselves to the store. --- .../os-specific/linux/displaylink/default.nix | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/linux/displaylink/default.nix b/pkgs/os-specific/linux/displaylink/default.nix index 1f513786063..f561a65ea5c 100644 --- a/pkgs/os-specific/linux/displaylink/default.nix +++ b/pkgs/os-specific/linux/displaylink/default.nix @@ -1,4 +1,5 @@ -{ stdenv, lib, fetchurl, unzip, utillinux, libusb1, evdi, systemd, makeWrapper }: +{ stdenv, lib, fetchurl, unzip, utillinux, + libusb1, evdi, systemd, makeWrapper, requireFile }: let arch = @@ -12,10 +13,22 @@ in stdenv.mkDerivation rec { name = "displaylink-${version}"; version = "1.3.52"; - src = fetchurl { + src = requireFile rec { name = "displaylink.zip"; - url = "http://www.displaylink.com/downloads/file?id=744"; sha256 = "0ridpsxcf761vym0nlpq702qa46ynddzci17bjmyax2pph7khr0k"; + message = '' + In order to install the DisplayLink drivers, you must first + comply with DisplayLink's EULA and download the binaries and + sources from here: + + http://www.displaylink.com/downloads/file?id=744 + + Once you have downloaded the file, please use the following + commands and re-run the installation: + + mv \$PWD/"DisplayLink USB Graphics Software for Ubuntu ${version}.zip" \$PWD/${name} + nix-prefetch-url file://\$PWD/${name} + ''; }; nativeBuildInputs = [ unzip makeWrapper ];