diff --git a/firmware/default.nix b/firmware/default.nix new file mode 100644 index 0000000..38d10ce --- /dev/null +++ b/firmware/default.nix @@ -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; + }; +} diff --git a/overlay.nix b/overlay.nix index 6b78cbc..2d99e7b 100644 --- a/overlay.nix +++ b/overlay.nix @@ -34,4 +34,5 @@ in ]; }; linuxPackages_pinebookpro = linuxPackagesFor final.linux_pinebookpro; + pinebookpro-firmware = callPackage ./firmware {}; }