Something went wrong. Try again.
lol
Something went wrong. Try again.
938 B · 39 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940{ lib, buildPythonPackage, flit-core, cmake,}:
buildPythonPackage { pname = "cmake"; inherit (cmake) version; pyproject = true;
src = ./stub;
postUnpack = '' substituteInPlace "$sourceRoot/pyproject.toml" \ --subst-var version
substituteInPlace "$sourceRoot/cmake/__init__.py" \ --subst-var version \ --subst-var-by CMAKE_BIN_DIR "${cmake}/bin" '';
inherit (cmake) setupHooks;
nativeBuildInputs = [ flit-core ];
pythonImportsCheck = [ "cmake" ];
meta = { description = "CMake is an open-source, cross-platform family of tools designed to build, test and package software"; longDescription = '' This is a stub of the cmake package on PyPI that uses the cmake program provided by nixpkgs instead of downloading cmake from the web. ''; homepage = "https://github.com/scikit-build/cmake-python-distributions"; license = lib.licenses.asl20; };}