Skip to content

Commit

Permalink
Merge pull request #233989 from 06kellyjac/deno
Browse files Browse the repository at this point in the history
deno: 1.33.3 -> 1.34.0
  • Loading branch information
wegank committed May 26, 2023
2 parents fe3b3c9 + bf12e00 commit 671cb8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 27 deletions.
25 changes: 3 additions & 22 deletions pkgs/development/web/deno/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,22 @@
, fetchFromGitHub
, rustPlatform
, installShellFiles
, tinycc
, libiconv
, darwin
, librusty_v8 ? callPackage ./librusty_v8.nix { }
}:

rustPlatform.buildRustPackage rec {
pname = "deno";
version = "1.33.3";
version = "1.34.0";

src = fetchFromGitHub {
owner = "denoland";
repo = pname;
rev = "v${version}";
hash = "sha256-E1Usmj4f3jvzllKIrItzOIe4kf0DRQWwobVGuN291Ys=";
hash = "sha256-B9YzJsnbohzQQQj2Ec1szh/aY2zoYFOoEXTShwOzMlE=";
};
cargoHash = "sha256-8L9UrFQTpwG2Gw4V72NvqdqQicG0HPRdmNJPhkWqj4s=";
cargoHash = "sha256-rwN7pEb6bDLb7YrcfuWC9Y0m7b+50AeLKMKx7WLKYT8=";

postPatch = ''
# upstream uses lld on aarch64-darwin for faster builds
Expand All @@ -40,24 +39,6 @@ rustPlatform.buildRustPackage rec {
# To avoid this we pre-download the file and export it via RUSTY_V8_ARCHIVE
RUSTY_V8_ARCHIVE = librusty_v8;

# The deno_ffi package currently needs libtcc.a on linux and macos and will try to compile it at build time
# To avoid this we point it to our copy (dir)
# In the future tinycc will be replaced with asm
libtcc = tinycc.overrideAttrs (oa: {
makeFlags = [ "libtcc.a" ];
# tests want tcc binary
doCheck = false;
outputs = [ "out" ];
installPhase = ''
mkdir -p $out/lib/
mv libtcc.a $out/lib/
'';
# building the whole of tcc on darwin is broken in nixpkgs
# but just building libtcc.a works fine so mark this as unbroken
meta.broken = false;
});
TCC_PATH = "${libtcc}/lib";

# Tests have some inconsistencies between runs with output integration tests
# Skipping until resolved
doCheck = false;
Expand Down
10 changes: 5 additions & 5 deletions pkgs/development/web/deno/librusty_v8.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ let
};
in
fetch_librusty_v8 {
version = "0.71.1";
version = "0.72.0";
shas = {
x86_64-linux = "sha256-QCqCJdNaOLXggIGQhLOV/NvbMebfA3g1iyiBtkPDS9A=";
aarch64-linux = "sha256-r9/1086GQolGfc3iqIxZzTmoC7G/1vK4QG4Qvm0zUOo=";
x86_64-darwin = "sha256-kMpB9F2sTxjqnplOznvv20fa7AhdnEeIb3yb4qa72e0=";
aarch64-darwin = "sha256-jWjPJa3bWynoMUmccASggvu25NaHpn/AsTnC/JMyr8o=";
x86_64-linux = "sha256-APF8pCLLJ2m2XdvsecEQu5HBuNZx+WO/qRGdwogZi10=";
aarch64-linux = "sha256-clhSbml1qnPGEU6KfhVouIHqWTWjZeN6xLw+AIhHuKI=";
x86_64-darwin = "sha256-2pEpeDJucUIOY0pOpbaUAKW4is7A1Axz+ZDhDSiIEa8=";
aarch64-darwin = "sha256-BL9u5nS0okQyLzLWJh70vyqBoSGW6bJaYzxeCNHGBwg=";
};
}

0 comments on commit 671cb8e

Please sign in to comment.