diff --git a/default.nix b/default.nix index 3ef8cf3..f07c9f8 100644 --- a/default.nix +++ b/default.nix @@ -8,9 +8,7 @@ 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 {