Skip to content

Commit

Permalink
raspberrypi-fw: use fetchurl to avoid darwin issue
Browse files Browse the repository at this point in the history
Co-authored-by: Zhaofeng Li <[email protected]>
  • Loading branch information
colemickens and zhaofengli committed Feb 12, 2022
1 parent 963f011 commit 51b7e23
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkgs/os-specific/linux/firmware/raspberrypi/default.nix
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 51b7e23

Please sign in to comment.