summary refs log tree commit diff
path: root/pkgs/os-specific/linux/displaylink/default.nix
diff options
context:
space:
mode:
authorSang Hak (Andy) Chun <sanghak@andychun.info>2017-08-16 21:24:28 -0700
committerFranz Pletz <fpletz@fnordicwalking.de>2017-08-30 02:56:45 +0200
commit48291b066d6eeef9b935314fab6acdd6015b47d9 (patch)
treea2cab0e61b9601055e9bc027ed402406038fd314 /pkgs/os-specific/linux/displaylink/default.nix
parent5543e992f1d66aa4fb4e7ec19597bbe8b8ac18a8 (diff)
downloadnixpkgs-48291b066d6eeef9b935314fab6acdd6015b47d9.tar
nixpkgs-48291b066d6eeef9b935314fab6acdd6015b47d9.tar.gz
nixpkgs-48291b066d6eeef9b935314fab6acdd6015b47d9.tar.bz2
nixpkgs-48291b066d6eeef9b935314fab6acdd6015b47d9.tar.lz
nixpkgs-48291b066d6eeef9b935314fab6acdd6015b47d9.tar.xz
nixpkgs-48291b066d6eeef9b935314fab6acdd6015b47d9.tar.zst
nixpkgs-48291b066d6eeef9b935314fab6acdd6015b47d9.zip
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.
Diffstat (limited to 'pkgs/os-specific/linux/displaylink/default.nix')
-rw-r--r--pkgs/os-specific/linux/displaylink/default.nix19
1 files 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 ];