We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3a351b commit ae11365Copy full SHA for ae11365
flake.nix
@@ -74,7 +74,25 @@
74
}
75
);
76
# TODO: build with maturin
77
- py = null;
+ py =
78
+ (craneLib.buildPackage (commonArgs
79
+ // {
80
+ pname = "pineappl-py";
81
+ inherit cargoArtifacts;
82
+ }))
83
+ .overrideAttrs (old: {
84
+ nativeBuildInputs = old.nativeBuildInputs ++ [pkgs.maturin];
85
+ buildPhase =
86
+ old.buildPhase
87
+ + ''
88
+ maturin build --offline --target-dir ./target
89
+ '';
90
+ installPhase =
91
+ old.installPhase
92
93
+ cp target/wheels/pineappl $out/
94
95
+ });
96
in
97
{
98
packages = {
0 commit comments