We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b20815e commit 30829e1Copy full SHA for 30829e1
1 file changed
libs/opsqueue_python/opsqueue_python.nix
@@ -7,7 +7,7 @@
7
rustToolchain,
8
9
# Native build dependencies:
10
- python3,
+ python,
11
maturin,
12
buildPythonPackage,
13
perl,
@@ -38,7 +38,7 @@ let
38
commonArgs = {
39
inherit src version pname;
40
strictDeps = true;
41
- nativeBuildInputs = [ python3 ];
+ nativeBuildInputs = [ python ];
42
cargoExtraArgs = "--package opsqueue_python";
43
};
44
cargoArtifacts = craneLib.buildDepsOnly (commonArgs // { pname = pname; });
@@ -50,6 +50,7 @@ let
50
(craneLib.buildPackage (commonArgs // { inherit cargoArtifacts; })).overrideAttrs
51
(old: {
52
nativeBuildInputs = old.nativeBuildInputs ++ [ maturin ];
53
+ env.PYO3_PYTHON = python.interpreter;
54
55
# We intentionally _override_ rather than extend the buildPhase
56
# as Maturin itself calls `cargo build`, no need to call it twice.
0 commit comments