···4, fetchFromGitHub
5, rustPlatform
6, installShellFiles
7-, fetchpatch
8, tinycc
9, libiconv
10, libobjc
···30in
31rustPlatform.buildRustPackage rec {
32 pname = "deno";
33- version = "1.23.4";
3435 src = fetchFromGitHub {
36 owner = "denoland";
37 repo = pname;
38 rev = "v${version}";
39- sha256 = "sha256-nLQqfLRuh9mhZfjeiPaGpQbi5bXEg7HiGwrwDmaIRWM=";
40 };
41- cargoSha256 = "sha256-l5Ce/ypYXZKEi859OFskwC/Unpo842ZPxIHvp6lCjQc=";
42-43- patches = [
44- # remove after https://github.com/denoland/deno/pull/15193 is in a release
45- (fetchpatch {
46- name = "byo-tcc.patch";
47- url = "https://github.com/denoland/deno/pull/15193/commits/c43698b2b58af1ef69b1558d55c8ebea0268dfea.patch";
48- sha256 = "sha256-YE5mGHyEm20FjFhr8yveBRlrOVL3+qQYxz2xp/IfmJs=";
49- })
50- ];
5152 postPatch = ''
53 # upstream uses lld on aarch64-darwin for faster builds
···68 # The deno_ffi package currently needs libtcc.a on linux and macos and will try to compile it at build time
69 # To avoid this we point it to our copy (dir)
70 # In the future tinycc will be replaced with asm
71- DENO_FFI_LIBTCC = "${libtcc}/lib";
7273 # Tests have some inconsistencies between runs with output integration tests
74 # Skipping until resolved
···111 license = licenses.mit;
112 maintainers = with maintainers; [ jk ];
113 platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
0114 };
115}
···4, fetchFromGitHub
5, rustPlatform
6, installShellFiles
07, tinycc
8, libiconv
9, libobjc
···29in
30rustPlatform.buildRustPackage rec {
31 pname = "deno";
32+ version = "1.25.1";
3334 src = fetchFromGitHub {
35 owner = "denoland";
36 repo = pname;
37 rev = "v${version}";
38+ sha256 = "sha256-nKMQDfCU1HsOfdzVwmgCIWa/rUmvufHlsS9jcDwcZzw=";
39 };
40+ cargoSha256 = "sha256-jFoVQK74gnhC6Ume/PHe8NG7rNeTkwPMBBWn/hT7nCs=";
0000000004142 postPatch = ''
43 # upstream uses lld on aarch64-darwin for faster builds
···58 # The deno_ffi package currently needs libtcc.a on linux and macos and will try to compile it at build time
59 # To avoid this we point it to our copy (dir)
60 # In the future tinycc will be replaced with asm
61+ TCC_PATH = "${libtcc}/lib";
6263 # Tests have some inconsistencies between runs with output integration tests
64 # Skipping until resolved
···101 license = licenses.mit;
102 maintainers = with maintainers; [ jk ];
103 platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
104+ broken = stdenv.isDarwin; # currently fail to build tinycc on darwin in nixpkgs
105 };
106}