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:
parent
5543e992f1
commit
48291b066d
@ -1,4 +1,5 @@
|
|||||||
{ stdenv, lib, fetchurl, unzip, utillinux, libusb1, evdi, systemd, makeWrapper }:
|
{ stdenv, lib, fetchurl, unzip, utillinux,
|
||||||
|
libusb1, evdi, systemd, makeWrapper, requireFile }:
|
||||||
|
|
||||||
let
|
let
|
||||||
arch =
|
arch =
|
||||||
@ -12,10 +13,22 @@ in stdenv.mkDerivation rec {
|
|||||||
name = "displaylink-${version}";
|
name = "displaylink-${version}";
|
||||||
version = "1.3.52";
|
version = "1.3.52";
|
||||||
|
|
||||||
src = fetchurl {
|
src = requireFile rec {
|
||||||
name = "displaylink.zip";
|
name = "displaylink.zip";
|
||||||
url = "http://www.displaylink.com/downloads/file?id=744";
|
|
||||||
sha256 = "0ridpsxcf761vym0nlpq702qa46ynddzci17bjmyax2pph7khr0k";
|
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 ];
|
nativeBuildInputs = [ unzip makeWrapper ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user