Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 62 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263{ stdenv, lib, substituteAll, buildPythonPackage, fetchPypi, catch2, cmake, cxxopts, ghc_filesystem, pybind11, pytestCheckHook, pythonOlder, psutil, setuptools-scm}:
buildPythonPackage rec { pname = "chiapos"; version = "1.0.11"; disabled = pythonOlder "3.7";
src = fetchPypi { inherit pname version; hash = "sha256-TMRf9549z3IQzGt5c53Rk1Vq3tdrpZ3Pqc8jhj4AKzo="; };
patches = [ # prevent CMake from trying to get libraries on the Internet (substituteAll { src = ./dont_fetch_dependencies.patch; inherit cxxopts ghc_filesystem; catch2_src = catch2.src; pybind11_src = pybind11.src; }) ];
nativeBuildInputs = [ cmake setuptools-scm ];
buildInputs = [ pybind11 ];
nativeCheckInputs = [ psutil pytestCheckHook ];
# A fix for cxxopts >=3.1 postPatch = '' substituteInPlace src/cli.cpp \ --replace "cxxopts::OptionException" "cxxopts::exceptions::exception" '';
# CMake needs to be run by setuptools rather than by its hook dontConfigure = true;
meta = with lib; { broken = stdenv.isDarwin; description = "Chia proof of space library"; homepage = "https://www.chia.net/"; license = licenses.asl20; maintainers = teams.chia.members; };}