diff --git a/src/kernel/default.nix b/src/kernel/default.nix index 38bf993..0cdae5a 100644 --- a/src/kernel/default.nix +++ b/src/kernel/default.nix @@ -8,8 +8,8 @@ let inherit (nixpkgsOnBuildForHost) stdenv; - version = "5.4.218"; - hash = "sha256-Pd10AoU31newwCsXz9+IH06933VVJsy5zX+Yg3Gp9Dg="; + version = "5.10.148"; + hash = "sha256-ElI/a+IhBnCU7FQbGWvOcEk/f0TwMbPEcR2C4pDG6VY="; in stdenv.mkDerivation { pname = "linux"; inherit version; @@ -38,7 +38,7 @@ in stdenv.mkDerivation { nativeBuildInputs = with nixpkgsOnBuildForBuild; [ perl bc nettools openssl rsync gmp libmpc mpfr gawk zstd python3Minimal - kmod bison flex libelf cpio pahole zlib elfutils ]; + kmod bison flex elfutils cpio pahole zlib elfutils ]; hardeningDisable = [ "all" ]; # crypto/jitterentropy.c:54:3: error: #error "The CPU Jitter random diff --git a/src/platform/kevin/default.nix b/src/platform/kevin/default.nix index 0d94c39..f366e66 100644 --- a/src/platform/kevin/default.nix +++ b/src/platform/kevin/default.nix @@ -39,19 +39,10 @@ in { platform_name = "kevin"; kernel = - let - version = "5.10.148"; - hash = "sha256-ElI/a+IhBnCU7FQbGWvOcEk/f0TwMbPEcR2C4pDG6VY="; - in final.lib.makeOverridable (prev.kernel.override { config = ./linux.config; buildTargets = [ "Image" "dtbs" ]; }).overrideAttrs (a: { - inherit version; - src = final.nixpkgsOnBuildForBuild.fetchurl { - url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz"; - inherit hash; - }; postInstall = (a.postInstall or "") + '' lzma < arch/arm64/boot/Image > $out/Image.lzma cp arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dtb $out/