Merge pull request #249644 from tjni/cmake-and-ninja
python3.pkgs.{cmake,ninja}: add __version__ to stub
This commit is contained in:
commit
0d715184ab
|
@ -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):
|
||||
|
|
|
@ -16,6 +16,7 @@ buildPythonPackage rec {
|
|||
--subst-var version
|
||||
|
||||
substituteInPlace "$sourceRoot/ninja/__init__.py" \
|
||||
--subst-var version \
|
||||
--subst-var-by BIN_DIR "${ninja}/bin"
|
||||
'';
|
||||
|
||||
|
|
|
@ -2,6 +2,8 @@ import os
|
|||
import subprocess
|
||||
import sys
|
||||
|
||||
__version__ = '@version@'
|
||||
|
||||
BIN_DIR = '@BIN_DIR@'
|
||||
|
||||
def _program(name, args):
|
||||
|
|
Loading…
Reference in a new issue