Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 67 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ lib, buildPythonPackage, fetchFromGitHub, nlohmann_json, pybind11, replaceVars, gtest, setuptools, cmake, sfml_2, hydra-core, pyvirtualdisplay,}:
buildPythonPackage { pname = "nocturne"; version = "0-unstable-2024-06-19"; pyproject = true;
src = fetchFromGitHub { owner = "facebookresearch"; repo = "nocturne"; rev = "6d1e0f329f7acbed01c934842b269333540af6d2"; hash = "sha256-Ufhvc+IZUrn8i6Fmu6o81LPjY1Jo0vzsso+eLbI1F2s="; };
# Simulate the git submodules but with nixpkgs dependencies postUnpack = '' rm -rf $sourceRoot/third_party/* ln -s ${nlohmann_json.src} $sourceRoot/third_party/json ln -s ${pybind11.src} $sourceRoot/third_party/pybind11 '';
patches = [ (replaceVars ./dependencies.patch { gtest_src = gtest.src; }) ];
build-system = [ setuptools ];
nativeBuildInputs = [ cmake ]; dontUseCmakeConfigure = true;
buildInputs = [ sfml_2 ];
# hydra-core and pyvirtualdisplay are not declared as dependences but they are requirements dependencies = [ hydra-core pyvirtualdisplay ];
# Test suite requires hydra-submitit-launcher which is not packaged as of 2022-01-02 doCheck = false;
pythonImportsCheck = [ "nocturne" ];
meta = { description = "Data-driven, fast driving simulator for multi-agent coordination under partial observability"; homepage = "https://github.com/facebookresearch/nocturne"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ samuela ]; };}