From 51b7e23e8fcea6768ad80faefc02c60b209e71ee Mon Sep 17 00:00:00 2001 From: Cole Mickens Date: Mon, 24 Jan 2022 16:46:49 -0800 Subject: [PATCH] raspberrypi-fw: use fetchurl to avoid darwin issue Co-authored-by: Zhaofeng Li --- .../linux/firmware/raspberrypi/default.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/os-specific/linux/firmware/raspberrypi/default.nix b/pkgs/os-specific/linux/firmware/raspberrypi/default.nix index 0959419b636e1..7f0eef05dc4ee 100644 --- a/pkgs/os-specific/linux/firmware/raspberrypi/default.nix +++ b/pkgs/os-specific/linux/firmware/raspberrypi/default.nix @@ -1,20 +1,20 @@ -{ lib, stdenvNoCC, fetchFromGitHub }: +{ lib, stdenvNoCC, fetchurl, unzip }: stdenvNoCC.mkDerivation rec { # NOTE: this should be updated with linux_rpi pname = "raspberrypi-firmware"; version = "1.20220118"; - src = fetchFromGitHub { - owner = "raspberrypi"; - repo = "firmware"; - rev = version; - sha256 = "sha256-q8xlDnnvkaQ2R/KH2Ojd11IAP1sWjoyAJZiVdAfYKkQ="; + src = fetchurl { + url = "https://github.com/raspberrypi/firmware/archive/${version}.zip"; + sha256 = "sha256-98rbwKIuB7vb4MWbFCr7TYsvJB0HzPdH8Tw0+bktK/M="; }; + nativeBuildInputs = [ unzip ]; + installPhase = '' - mkdir -p $out/share/raspberrypi/boot - cp -R boot/* $out/share/raspberrypi/boot + mkdir -p $out/share/raspberrypi/ + mv boot "$out/share/raspberrypi/" ''; dontConfigure = true;