summary refs log tree commit diff
diff options
context:
space:
mode:
authorCole Mickens <cole.mickens@gmail.com>2022-01-24 16:46:49 -0800
committerZhaofeng Li <hello@zhaofeng.li>2022-02-12 00:04:48 -0800
commit51b7e23e8fcea6768ad80faefc02c60b209e71ee (patch)
tree33d2be82331eae2a5a86983f412e2e69c6d563d1
parent963f011f16315e44a141724df09a94378aac8291 (diff)
downloadnixpkgs-51b7e23e8fcea6768ad80faefc02c60b209e71ee.tar
nixpkgs-51b7e23e8fcea6768ad80faefc02c60b209e71ee.tar.gz
nixpkgs-51b7e23e8fcea6768ad80faefc02c60b209e71ee.tar.bz2
nixpkgs-51b7e23e8fcea6768ad80faefc02c60b209e71ee.tar.lz
nixpkgs-51b7e23e8fcea6768ad80faefc02c60b209e71ee.tar.xz
nixpkgs-51b7e23e8fcea6768ad80faefc02c60b209e71ee.tar.zst
nixpkgs-51b7e23e8fcea6768ad80faefc02c60b209e71ee.zip
raspberrypi-fw: use fetchurl to avoid darwin issue
Co-authored-by: Zhaofeng Li <hello@zhaofeng.li>
-rw-r--r--pkgs/os-specific/linux/firmware/raspberrypi/default.nix16
1 files 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 0959419b636..7f0eef05dc4 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;