mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
python3.pkgs.cmake: add __version__ to stub
This commit is contained in:
parent
814012a230
commit
adf01a3233
@ -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"
|
||||
'';
|
||||
|
||||
|
@ -2,6 +2,8 @@ import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
__version__ = '@version@'
|
||||
|
||||
CMAKE_BIN_DIR = '@CMAKE_BIN_DIR@'
|
||||
|
||||
def _program(name, args):
|
||||
|
Loading…
Reference in New Issue
Block a user