firmwareLinuxNonfree: fix fetching from git (#116306)

Since https://github.com/NixOS/nixpkgs/pull/104714 using a tag as
the `rev` parameter to `fetchgit` is no longer reliable, so spell
out the rev.

Fixes #114439
This commit is contained in:
Arnout Engelen 2021-03-14 12:58:11 +01:00 committed by GitHub
parent 3329093c6a
commit 5bf3230f6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ stdenvNoCC.mkDerivation rec {
src = fetchgit {
url = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git";
rev = lib.replaceStrings ["-"] [""] version;
rev = "refs/tags/" + lib.replaceStrings ["-"] [""] version;
sha256 = "0c85cd659312isfz1r87qswsgfhy0rljagcwspnvjljqrh9bsgzq";
};