-
-
Notifications
You must be signed in to change notification settings - Fork 666
/
Copy pathdefault.nix
50 lines (45 loc) · 1.83 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{ 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;
}