From e575e08cacd3461feae843d368fa205c85304b2c Mon Sep 17 00:00:00 2001 From: Someone Serge Date: Tue, 25 Jun 2024 17:09:58 +0000 Subject: evanix-py: init --- python-package.nix | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 python-package.nix (limited to 'python-package.nix') diff --git a/python-package.nix b/python-package.nix new file mode 100644 index 0000000..a422052 --- /dev/null +++ b/python-package.nix @@ -0,0 +1,41 @@ +{ + lib, + buildPythonPackage, + meson-python, + ninja, + pkg-config, + makeWrapper, + cjson, +}: + +buildPythonPackage { + pname = "evanix"; + version = "0.0.1"; + pyproject = true; + + src = + let + fs = lib.fileset; + in + fs.toSource { + root = ./.; + fileset = fs.unions [ + ./src + ./include + ./meson.build + ./meson_options.txt + ./pyproject.toml + ]; + }; + + build-system = [ meson-python ]; + nativeBuildInputs = [ + ninja + pkg-config + makeWrapper + ]; + buildInputs = [ + cjson + # nix-eval-jobs + ]; +} -- cgit v1.2.3