···4, fetchFromGitHub
5, rustPlatform
6, installShellFiles
7-, tinycc
8, libiconv
9, darwin
10, librusty_v8 ? callPackage ./librusty_v8.nix { }
···1213rustPlatform.buildRustPackage rec {
14 pname = "deno";
15- version = "1.33.3";
1617 src = fetchFromGitHub {
18 owner = "denoland";
19 repo = pname;
20 rev = "v${version}";
21- hash = "sha256-E1Usmj4f3jvzllKIrItzOIe4kf0DRQWwobVGuN291Ys=";
22 };
23- cargoHash = "sha256-8L9UrFQTpwG2Gw4V72NvqdqQicG0HPRdmNJPhkWqj4s=";
2425 postPatch = ''
26 # upstream uses lld on aarch64-darwin for faster builds
···39 # The v8 package will try to download a `librusty_v8.a` release at build time to our read-only filesystem
40 # To avoid this we pre-download the file and export it via RUSTY_V8_ARCHIVE
41 RUSTY_V8_ARCHIVE = librusty_v8;
42-43- # The deno_ffi package currently needs libtcc.a on linux and macos and will try to compile it at build time
44- # To avoid this we point it to our copy (dir)
45- # In the future tinycc will be replaced with asm
46- libtcc = tinycc.overrideAttrs (oa: {
47- makeFlags = [ "libtcc.a" ];
48- # tests want tcc binary
49- doCheck = false;
50- outputs = [ "out" ];
51- installPhase = ''
52- mkdir -p $out/lib/
53- mv libtcc.a $out/lib/
54- '';
55- # building the whole of tcc on darwin is broken in nixpkgs
56- # but just building libtcc.a works fine so mark this as unbroken
57- meta.broken = false;
58- });
59- TCC_PATH = "${libtcc}/lib";
6061 # Tests have some inconsistencies between runs with output integration tests
62 # Skipping until resolved
···4, fetchFromGitHub
5, rustPlatform
6, installShellFiles
07, libiconv
8, darwin
9, librusty_v8 ? callPackage ./librusty_v8.nix { }
···1112rustPlatform.buildRustPackage rec {
13 pname = "deno";
14+ version = "1.34.0";
1516 src = fetchFromGitHub {
17 owner = "denoland";
18 repo = pname;
19 rev = "v${version}";
20+ hash = "sha256-B9YzJsnbohzQQQj2Ec1szh/aY2zoYFOoEXTShwOzMlE=";
21 };
22+ cargoHash = "sha256-rwN7pEb6bDLb7YrcfuWC9Y0m7b+50AeLKMKx7WLKYT8=";
2324 postPatch = ''
25 # upstream uses lld on aarch64-darwin for faster builds
···38 # The v8 package will try to download a `librusty_v8.a` release at build time to our read-only filesystem
39 # To avoid this we pre-download the file and export it via RUSTY_V8_ARCHIVE
40 RUSTY_V8_ARCHIVE = librusty_v8;
0000000000000000004142 # Tests have some inconsistencies between runs with output integration tests
43 # Skipping until resolved