diff --git a/pkgs/development/python-modules/cmake/default.nix b/pkgs/development/python-modules/cmake/default.nix index 9400d4a884a3..c9ee7d11c8fb 100644 --- a/pkgs/development/python-modules/cmake/default.nix +++ b/pkgs/development/python-modules/cmake/default.nix @@ -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" ''; diff --git a/pkgs/development/python-modules/cmake/stub/cmake/__init__.py b/pkgs/development/python-modules/cmake/stub/cmake/__init__.py index db309957547c..512a13f3d94a 100644 --- a/pkgs/development/python-modules/cmake/stub/cmake/__init__.py +++ b/pkgs/development/python-modules/cmake/stub/cmake/__init__.py @@ -2,6 +2,8 @@ import os import subprocess import sys +__version__ = '@version@' + CMAKE_BIN_DIR = '@CMAKE_BIN_DIR@' def _program(name, args):