python3.pkgs.cmake: add __version__ to stub

This commit is contained in:
Theodore Ni 2023-08-16 16:10:19 -07:00
parent 814012a230
commit adf01a3233
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474
2 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,7 @@ buildPythonPackage rec {
--subst-var version
substituteInPlace "$sourceRoot/cmake/__init__.py" \
--subst-var version \
--subst-var-by CMAKE_BIN_DIR "${cmake}/bin"
'';

View File

@ -2,6 +2,8 @@ import os
import subprocess
import sys
__version__ = '@version@'
CMAKE_BIN_DIR = '@CMAKE_BIN_DIR@'
def _program(name, args):