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.
This commit is contained in:
Sang Hak (Andy) Chun 2017-08-16 21:24:28 -07:00 committed by Franz Pletz
parent 5543e992f1
commit 48291b066d

View File

@ -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 ];