aboutsummaryrefslogtreecommitdiff
path: root/python-package.nix
diff options
context:
space:
mode:
authorSinan Mohd <sinan@sinanmohd.com>2024-06-26 11:29:28 +0530
committerGitHub <noreply@github.com>2024-06-26 11:29:28 +0530
commit8348bde98acac3328fee84d21f8e5ebb51692afa (patch)
tree16830bb2d6f8774a99864c52be47ee9abe13bed8 /python-package.nix
parentcc02eba1d357dde0132593649c67a194750fe37d (diff)
parente575e08cacd3461feae843d368fa205c85304b2c (diff)
Merge pull request #1 from SomeoneSerge/feat/python
evanix-py: init
Diffstat (limited to 'python-package.nix')
-rw-r--r--python-package.nix41
1 files changed, 41 insertions, 0 deletions
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
+ ];
+}