linux-firmware: fetchgit -> fetchzip

No need to do a full git clone for this.  Checked that the hash stays
the same.
This commit is contained in:
Alyssa Ross 2022-05-12 15:20:19 +00:00
parent dd3f6a6aae
commit 1f7ac05b45

View file

@ -1,12 +1,11 @@
{ stdenvNoCC, fetchgit, lib }:
{ stdenvNoCC, fetchzip, lib }:
stdenvNoCC.mkDerivation rec {
pname = "linux-firmware";
version = "20220509";
src = fetchgit {
url = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git";
rev = "refs/tags/${version}";
src = fetchzip {
url = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${version}.tar.gz";
sha256 = "sha256-pNuKA4XigrHU9qC5Ch6HLs3/tcv0zIkAzow9VOIVKdQ=";
};