From 6d1b7f8e568482a9dab84a67f41930211c7ce122 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Wed, 26 Nov 2025 16:08:38 -0800 Subject: [PATCH] keep default.nix in sync --- default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index e6e3df4..3ef8cf3 100644 --- a/default.nix +++ b/default.nix @@ -5,9 +5,17 @@ installShellFiles, ... }: +let + cmakeContent = builtins.readFile ./CMakeLists.txt; + cmakeLines = lib.splitString "\n" cmakeContent; + # Find the line containing set(KE_VERSION "...") + versionLine = lib.findFirst (l: builtins.match ".*set\\(KE_VERSION \".+\"\\).*" l != null) (throw "KE_VERSION not found in CMakeLists.txt") cmakeLines; + # Extract the version number + version = builtins.head (builtins.match ".*set\\(KE_VERSION \"(.+)\"\\).*" versionLine); +in stdenv.mkDerivation { pname = "ke"; - version = "1.5.1"; + inherit version; src = lib.cleanSource ./.;