diff options
author | Karel Kočí <cynerd@email.cz> | 2022-10-15 23:01:29 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-10-16 13:20:32 +0200 |
commit | 462a088c474832b19ff2730de1e6bea66d399c23 (patch) | |
tree | a512b3b451afde09a9cb06449bd7a3bdc5a8bdb4 /pkgs/default.nix | |
parent | d5514ca4aeddc711639f46024528becfff7c2a70 (diff) | |
download | nixturris-462a088c474832b19ff2730de1e6bea66d399c23.tar.gz nixturris-462a088c474832b19ff2730de1e6bea66d399c23.tar.bz2 nixturris-462a088c474832b19ff2730de1e6bea66d399c23.zip |
Add Turris kernel (includes patches from OpenWrt)
Diffstat (limited to 'pkgs/default.nix')
-rw-r--r-- | pkgs/default.nix | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix index be0cc4f..082cca1 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -1,8 +1,11 @@ { nixpkgs ? <nixpkgs>, nixlib ? nixpkgs.lib }: +with builtins; +with nixlib; + let pkgs = nixpkgs // turrispkgs; - callPackage = nixlib.callPackageWith pkgs; + callPackage = callPackageWith pkgs; turrispkgs = with pkgs; { @@ -11,6 +14,14 @@ let mox-otp = python3Packages.callPackage ./mox-otp { }; crypto-wrapper = callPackage ./crypto-wrapper { }; + # Turris kernels with patches + linux_turris_5_15 = callPackage + "${nixpkgs.path}/pkgs/os-specific/linux/kernel/linux-5.15.nix" { + kernelPatches = map (p: { name = toString p; patch = ./patches-linux-5.15 + "/${p}"; }) ( + attrNames (filterAttrs (n: v: v == "regular") ( + readDir ./patches-linux-5.15))); + }; + # NOR Firmwares armTrustedFirmwareTurrisMox = buildArmTrustedFirmware rec { platform = "a3700"; |