1
0
Fork 0
mirror of https://github.com/samueldr/wip-pinebook-pro.git synced 2024-11-01 00:29:41 +01:00

Add known-good firmwares

This commit is contained in:
Samuel Dionne-Riel 2020-01-07 15:09:54 -05:00
parent 4569bf8172
commit a0b1f602af
2 changed files with 27 additions and 0 deletions

26
firmware/default.nix Normal file
View file

@ -0,0 +1,26 @@
{ stdenv
, fetchFromGitLab
}:
stdenv.mkDerivation {
pname = "pinebookpro-firmware";
version = "2019-12-04";
src = fetchFromGitLab {
domain = "gitlab.manjaro.org";
owner = "tsys";
repo = "pinebook-firmware";
rev = "937f0d52d27d7712da6a008d35fd7c2819e2b077";
sha256 = "0qldxxlxk6f3gymkljphwy7dz3cl1gxsnijhng2l7rkrh7h6wgi2";
};
installPhase = ''
mkdir -p $out/lib/firmware/
cp -rv brcm $out/lib/firmware/brcm
cp -rv rockchip $out/lib/firmware/rockchip
'';
meta = with stdenv.lib; {
license = licenses.unfreeRedistributable;
};
}

View file

@ -34,4 +34,5 @@ in
]; ];
}; };
linuxPackages_pinebookpro = linuxPackagesFor final.linux_pinebookpro; linuxPackages_pinebookpro = linuxPackagesFor final.linux_pinebookpro;
pinebookpro-firmware = callPackage ./firmware {};
} }