Created
December 12, 2024 17:25
-
-
Save heyajulia/bd1d8ac504bb8e46e968f5c4ec0a1ab3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| description = "Python 3.13.1 with an off-by-default JIT"; | |
| inputs = { | |
| nixpkgs.url = "github:NixOS/nixpkgs"; | |
| }; | |
| outputs = { self, nixpkgs }: { | |
| packages.aarch64-darwin.default = let | |
| pkgs = import nixpkgs { | |
| system = "aarch64-darwin"; | |
| }; | |
| in pkgs.stdenv.mkDerivation { | |
| pname = "python"; | |
| version = "3.13.1"; | |
| src = pkgs.fetchurl { | |
| url = "https://www.python.org/ftp/python/3.13.1/Python-3.13.1.tar.xz"; | |
| sha256 = "1ngh1g45j2i6rq1nb7gkc6j3r1f186vgdl3xhzil48lyxrxl5ycw"; | |
| }; | |
| buildInputs = with pkgs; [ | |
| bzip2 | |
| zlib | |
| xz | |
| libffi | |
| ncurses | |
| readline | |
| openssl | |
| sqlite | |
| ]; | |
| nativeBuildInputs = with pkgs; [ pkg-config python313 llvmPackages_18.clangUseLLVM llvmPackages_18.libllvm ]; | |
| configureFlags = [ "--enable-optimizations" "--with-lto" "--enable-experimental-jit=yes-off" ]; | |
| meta = { | |
| description = "High-level dynamically-typed programming language"; | |
| license = pkgs.lib.licenses.psfl; | |
| platforms = [ "aarch64-darwin" ]; | |
| }; | |
| }; | |
| }; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment