diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-09-07 18:35:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-07 18:35:19 +0200 |
commit | 759945155af28e275d370c3dfba1e3a695513350 (patch) | |
tree | 7d4647d58717dae810b7ac5c31cd76de8d03b826 /pkgs/development/web/deno/default.nix | |
parent | 7837fafa9500952ab4ead9e371f7e3f01cfca502 (diff) | |
parent | 817a35be0bfcb9d29146ef89a2d927a315c67f3e (diff) |
Merge pull request #182311 from 06kellyjac/deno
Diffstat (limited to 'pkgs/development/web/deno/default.nix')
-rw-r--r-- | pkgs/development/web/deno/default.nix | 43 |
1 files changed, 17 insertions, 26 deletions
diff --git a/pkgs/development/web/deno/default.nix b/pkgs/development/web/deno/default.nix index 484f5a3d6b97..a28b0dba4b62 100644 --- a/pkgs/development/web/deno/default.nix +++ b/pkgs/development/web/deno/default.nix @@ -4,7 +4,6 @@ , fetchFromGitHub , rustPlatform , installShellFiles -, fetchpatch , tinycc , libiconv , libobjc @@ -16,38 +15,17 @@ , librusty_v8 ? callPackage ./librusty_v8.nix { } }: -let - 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/ - ''; - }); -in rustPlatform.buildRustPackage rec { pname = "deno"; - version = "1.23.4"; + version = "1.25.1"; src = fetchFromGitHub { owner = "denoland"; repo = pname; rev = "v${version}"; - sha256 = "sha256-nLQqfLRuh9mhZfjeiPaGpQbi5bXEg7HiGwrwDmaIRWM="; + sha256 = "sha256-nKMQDfCU1HsOfdzVwmgCIWa/rUmvufHlsS9jcDwcZzw="; }; - cargoSha256 = "sha256-l5Ce/ypYXZKEi859OFskwC/Unpo842ZPxIHvp6lCjQc="; - - patches = [ - # remove after https://github.com/denoland/deno/pull/15193 is in a release - (fetchpatch { - name = "byo-tcc.patch"; - url = "https://github.com/denoland/deno/pull/15193/commits/c43698b2b58af1ef69b1558d55c8ebea0268dfea.patch"; - sha256 = "sha256-YE5mGHyEm20FjFhr8yveBRlrOVL3+qQYxz2xp/IfmJs="; - }) - ]; + cargoSha256 = "sha256-jFoVQK74gnhC6Ume/PHe8NG7rNeTkwPMBBWn/hT7nCs="; postPatch = '' # upstream uses lld on aarch64-darwin for faster builds @@ -68,7 +46,20 @@ rustPlatform.buildRustPackage rec { # 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 - DENO_FFI_LIBTCC = "${libtcc}/lib"; + 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 |