From 6e515f7988a4dbb539de18c20bc061d17490f37e Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Mon, 21 Oct 2024 22:58:32 +0200 Subject: [PATCH] feat: automatically parse jhovold's kernel version --- packages/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/default.nix b/packages/default.nix index 5674e77..ff2fab6 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -26,7 +26,10 @@ in { linux_jhovold = pkgs.callPackage linux_x13s_pkg { src = inputs.linux-jhovold; - version = "6.12.0-rc2"; + version = let + lock = builtins.fromJSON (builtins.readFile ../flake.lock); + in builtins.elemAt (builtins.tail (builtins.split "xp-" lock.nodes.linux-jhovold.original.ref)) 1; + defconfig = "johan_defconfig"; };