https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
12 lines
207 B
Nix
12 lines
207 B
Nix
{ python3
|
|
, rustPlatform
|
|
}:
|
|
|
|
python3.pkgs.callPackage ./generic.nix {
|
|
buildAndTestSubdir = "examples/word-count";
|
|
|
|
nativeBuildInputs = with rustPlatform; [
|
|
cargoSetupHook
|
|
maturinBuildHook
|
|
];
|
|
}
|