From 31376b196227613c10b615da7795ed7eb4a94d4d Mon Sep 17 00:00:00 2001 From: volth Date: Tue, 3 Sep 2019 12:56:44 +0000 Subject: [PATCH] megacli: requireFile -> fetchurl --- pkgs/tools/misc/megacli/default.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/tools/misc/megacli/default.nix b/pkgs/tools/misc/megacli/default.nix index 5121491625f0..e202cc7ae469 100644 --- a/pkgs/tools/misc/megacli/default.nix +++ b/pkgs/tools/misc/megacli/default.nix @@ -1,15 +1,13 @@ -{ stdenv, rpmextract, ncurses5, patchelf, requireFile, unzip }: +{ stdenv, rpmextract, ncurses5, patchelf, fetchurl, unzip }: stdenv.mkDerivation rec { pname = "megacli"; version = "8.07.14"; - src = - requireFile { - name = "${builtins.replaceStrings ["."] ["-"] version}_MegaCLI.zip"; - url = https://docs.broadcom.com/docs/12351587; - sha256 = "1sdn58fbmd3fj4nzbajq3gcyw71ilgdh45r5p4sa6xmb7np55cfr"; - }; + src = fetchurl { + url = "https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/${builtins.replaceStrings ["."] ["-"] version}_MegaCLI.zip"; + sha256 = "1sdn58fbmd3fj4nzbajq3gcyw71ilgdh45r5p4sa6xmb7np55cfr"; + }; buildInputs = [rpmextract ncurses5 unzip]; libPath =