1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-26 21:09:42 +01:00

New source for ap6256-firmware and removed unstable kernel

This commit is contained in:
Andrea Ciceri 2022-04-08 10:58:58 +02:00
parent be88ca8b75
commit cb8db9e1bb
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
4 changed files with 8 additions and 63 deletions

View file

@ -74,7 +74,7 @@
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;
hardware.firmware = [ hardware.firmware = [
pkgs.pinebookpro-ap6256-firmware (pkgs.callPackage ./firmware/ap6256-firmware { })
]; ];
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [

View file

@ -1,16 +1,14 @@
{ lib { lib
, fetchFromGitLab , fetchFromGitHub
, fetchurl
, runCommandNoCC , runCommandNoCC
}: }:
let let
src = fetchFromGitLab { src = fetchFromGitHub {
domain = "gitlab.manjaro.org"; owner = "nix-community";
owner = "manjaro-arm"; repo = "rkwifibt";
repo = "packages/community/ap6256-firmware"; rev = "421b7dd8f3c67f66910710838a0be03f3575a3c9";
rev = "007c6dd132263624db9ea6ce8dde4fc2108f21b7"; sha256 = "175qcjfaz7nhpyh0hxiih53k3hly407lkpxgissvldghxrw01ccn";
sha256 = "sha256-Agqz05W7Rhl0NNQwpW4aQqs9YZmYyci9OXKzEKA30uk=";
}; };
in in
runCommandNoCC "pinebookpro-ap6256-firmware" runCommandNoCC "pinebookpro-ap6256-firmware"

View file

@ -1,50 +0,0 @@
{ pkgs, ... }:
let
pinnedNixpkgs = import
(builtins.fetchTarball {
name = "nixos-unstable-2022-03-28";
url = "https://github.com/nixos/nixpkgs/archive/ce8cbe3c01fd8ee2de526ccd84bbf9b82397a510.tar.gz";
sha256 = "19xfad7pxsp6nkrkjhn36w77w92m60ysq7njn711slw74yj6ibxv";
})
{
system = "aarch64-linux";
};
patches = [
"3170-arm64-dts-rk3399-pinebook-pro-Fix-USB-PD-charging.patch"
"3172-arm64-dts-rk3399-pinebook-pro-Improve-Type-C-support.patch"
"3174-arm64-dts-rk3399-pinebook-pro-Remove-redundant-pinct.patch"
"3178-arm64-dts-rk3399-pinebook-pro-Don-t-allow-usb2-phy-d.patch"
"3339-drm-rockchip-cdn-dp-Disable-CDN-DP-on-disconnect.patch"
"3355-usb-typec-fusb302-Set-the-current-before-enabling-pu.patch"
"3359-usb-typec-fusb302-Update-VBUS-state-even-if-VBUS-int.patch"
"3361-usb-typec-fusb302-Add-OF-extcon-support.patch"
"3362-usb-typec-fusb302-Fix-register-definitions.patch"
"3363-usb-typec-fusb302-Clear-interrupts-before-we-start-t.patch"
"3364-usb-typec-typec-extcon-Add-typec-extcon-bridge-drive.patch"
"3365-phy-rockchip-typec-Make-sure-the-plug-orientation-is.patch"
"3372-phy-rockchip-inno-usb2-More-robust-charger-detection.patch"
"3373-usb-typec-extcon-Don-t-touch-charger-proprties.patch"
];
manjaro-patches = pinnedNixpkgs.fetchgit {
url = "https://gitlab.manjaro.org/manjaro-arm/packages/core/linux.git";
rev = "d68667dfeb33a40a1ee5d6563ff4815e57ed9084";
sha256 = "04wb8nx5yw1r044i2cnd1dy4fc7whgn343iid0gqmyg5rk1ack2v";
};
create-patch = p: {
name = p;
patch = "${manjaro-patches}/${p}";
};
manjaro-kernel = pinnedNixpkgs.linuxPackagesFor (pinnedNixpkgs.linuxKernel.kernels.linux_5_16.override {
argsOverride = rec {
kernelPatches = map create-patch patches;
};
});
in
{
inherit unstable-manjaro-kernel;
}

View file

@ -1,11 +1,8 @@
final: super: final: super:
let let
inherit (final) callPackage kernelPatches linuxPackagesFor; inherit (final) callPackage;
kernels = callPackage ./kernel { };
in in
{ {
pinebookpro-unstable-manjaro-kernel = kernels.manjaro-kernel;
pinebookpro-ap6256-firmware = callPackage ./firmware/ap6256-firmware { };
pinebookpro-keyboard-updater = callPackage ./keyboard-updater { }; pinebookpro-keyboard-updater = callPackage ./keyboard-updater { };
} }