4bac34ead1
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
35 lines
875 B
Nix
35 lines
875 B
Nix
{ lib
|
|
, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, SystemConfiguration
|
|
, python3
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "rustpython";
|
|
version = "unstable-2022-10-11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "RustPython";
|
|
repo = "RustPython";
|
|
rev = "273ffd969ca6536df06d9f69076c2badb86f8f8c";
|
|
sha256 = "sha256-t/3++EeP7a8t2H0IEPLogBri7+6u+2+v+lNb4/Ty1/w=";
|
|
};
|
|
|
|
cargoHash = "sha256-Pv7SK64+eoK1VUxDh1oH0g1veWoIvBhiZE9JI/alXJ4=";
|
|
|
|
# freeze the stdlib into the rustpython binary
|
|
cargoBuildFlags = [ "--features=freeze-stdlib" ];
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ SystemConfiguration ];
|
|
|
|
nativeCheckInputs = [ python3 ];
|
|
|
|
meta = with lib; {
|
|
description = "Python 3 interpreter in written Rust";
|
|
homepage = "https://rustpython.github.io";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ prusnak ];
|
|
};
|
|
}
|