Nix flake for RPython interpreters
修订版 | 31ace2b778170927210dabdaf436e7bd40a7fdb1 (tree) |
---|---|
时间 | 2024-04-17 01:20:37 |
作者 | Corbin <cds@corb...> |
Commiter | Corbin |
Don't re-export Typhon.
Instead, let Monte users (all 2 of them!) import it from the downstream
flake. This lets us focus on providing generic RPython builders here.
@@ -7,13 +7,18 @@ Language | Attribute | ||
7 | 7 | Brainfuck | `bf` |
8 | 8 | DIVSPL | `divspl` |
9 | 9 | Game Boy LR35902 | `pygirl` |
10 | -Monte | `typhon` | |
11 | 10 | Prolog | `pyrolog` |
12 | 11 | Python 2.7 | `pypy27` |
13 | 12 | Python 3.8 | `pypy38` |
14 | 13 | Python 3.9 | `pypy39` |
15 | 14 | Ruby | `topaz` |
16 | 15 | |
16 | +And its helpers are used by the following flakes: | |
17 | + | |
18 | +Language | Downstream | |
19 | +---|--- | |
20 | +Monte | [`typhon`](https://github.com/monte-language/typhon/) | |
21 | + | |
17 | 22 | These implementations have one thing in common: they are written with RPython, |
18 | 23 | a restricted subset of Python 2.7 which is amenable to static analysis. Using |
19 | 24 | the RPython toolchain, they may be translated to efficient native interpreters |
@@ -37,8 +37,7 @@ | ||
37 | 37 | "root": { |
38 | 38 | "inputs": { |
39 | 39 | "flake-utils": "flake-utils", |
40 | - "nixpkgs": "nixpkgs", | |
41 | - "typhon": "typhon" | |
40 | + "nixpkgs": "nixpkgs" | |
42 | 41 | } |
43 | 42 | }, |
44 | 43 | "systems": { |
@@ -55,29 +54,6 @@ | ||
55 | 54 | "repo": "default", |
56 | 55 | "type": "github" |
57 | 56 | } |
58 | - }, | |
59 | - "typhon": { | |
60 | - "inputs": { | |
61 | - "flake-utils": [ | |
62 | - "flake-utils" | |
63 | - ], | |
64 | - "nixpkgs": [ | |
65 | - "nixpkgs" | |
66 | - ] | |
67 | - }, | |
68 | - "locked": { | |
69 | - "lastModified": 1707184108, | |
70 | - "narHash": "sha256-641r2pA5/mAGX0Dx6/zEP4UtnbS0S0bfOIrJW37ygvA=", | |
71 | - "owner": "monte-language", | |
72 | - "repo": "typhon", | |
73 | - "rev": "fac865f75da5cba9802d2fe7442bec611bd54af4", | |
74 | - "type": "github" | |
75 | - }, | |
76 | - "original": { | |
77 | - "owner": "monte-language", | |
78 | - "repo": "typhon", | |
79 | - "type": "github" | |
80 | - } | |
81 | 57 | } |
82 | 58 | }, |
83 | 59 | "root": "root", |
@@ -4,16 +4,9 @@ | ||
4 | 4 | inputs = { |
5 | 5 | nixpkgs.url = "github:nixos/nixpkgs/release-23.05"; |
6 | 6 | flake-utils.url = "github:numtide/flake-utils"; |
7 | - typhon = { | |
8 | - url = "github:monte-language/typhon"; | |
9 | - inputs = { | |
10 | - nixpkgs.follows = "nixpkgs"; | |
11 | - flake-utils.follows = "flake-utils"; | |
12 | - }; | |
13 | - }; | |
14 | 7 | }; |
15 | 8 | |
16 | - outputs = { self, nixpkgs, flake-utils, typhon }: | |
9 | + outputs = { self, nixpkgs, flake-utils }: | |
17 | 10 | let |
18 | 11 | # RPython's list of supported systems: https://www.pypy.org/features.html |
19 | 12 | # Tested systems have had at least one package built and manually |
@@ -313,7 +306,6 @@ | ||
313 | 306 | packages = { |
314 | 307 | inherit (pkgs) pypy2 pypy27 pypy3 pypy38 pypy39; |
315 | 308 | inherit bf divspl hippyvm topaz pygirl pysom pyrolog; |
316 | - typhon = typhon.packages.${system}.typhonVm; | |
317 | 309 | rpythonPackages = { |
318 | 310 | inherit appdirs macropy rply rsdl; |
319 | 311 | }; |