raspberrypi-fw: use fetchurl to avoid darwin issue
Co-authored-by: Zhaofeng Li <hello@zhaofeng.li>
This commit is contained in:
parent
963f011f16
commit
51b7e23e8f
1 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue