+7
-3
pkgs/by-name/de/deno/package.nix
+7
-3
pkgs/by-name/de/deno/package.nix
···
29
29
in
30
30
rustPlatform.buildRustPackage (finalAttrs: {
31
31
pname = "deno";
32
-
version = "2.5.2";
32
+
version = "2.5.3";
33
33
34
34
src = fetchFromGitHub {
35
35
owner = "denoland";
36
36
repo = "deno";
37
37
tag = "v${finalAttrs.version}";
38
38
fetchSubmodules = true; # required for tests
39
-
hash = "sha256-wpn79xY+Gsn48C5mYF1lryrgZZsr1YJayd+Rl0gbPXY=";
39
+
hash = "sha256-UqD9Va33XVX73bjwUdb6woZ3kP/Xz6iBVqV1ceRbXq0=";
40
40
};
41
41
42
-
cargoHash = "sha256-KAHLZS6BfRgPBlBW0LSdHwPP6sRUN9kksMo0KuDtb5s=";
42
+
cargoHash = "sha256-OrKg3bOA5AyLQA+LIsHwWpk9DHodhcCVzdKW/S9+mNY=";
43
43
44
44
patches = [
45
45
# Patch out the remote upgrade (deno update) check.
···
53
53
./patches/0002-tests-replace-hardcoded-paths.patch
54
54
./patches/0003-tests-linux-no-chown.patch
55
55
./patches/0004-tests-darwin-fixes.patch
56
+
# some new TS tests don't identify `deno` location from parent actively
57
+
# running `deno` instance
58
+
# https://github.com/denoland/deno/pull/30914
59
+
./patches/0005-tests-fix-deno-path.patch
56
60
];
57
61
postPatch = ''
58
62
# Use patched nixpkgs libffi in order to fix https://github.com/libffi/libffi/pull/857
+34
pkgs/by-name/de/deno/patches/0005-tests-fix-deno-path.patch
+34
pkgs/by-name/de/deno/patches/0005-tests-fix-deno-path.patch
···
1
+
From 798fc5e7e87c1b985a383b7b92a7e55c82e41efa Mon Sep 17 00:00:00 2001
2
+
From: 06kellyjac <dev@j-k.io>
3
+
Date: Fri, 3 Oct 2025 14:20:53 +0100
4
+
Subject: [PATCH] test: leverage `Deno.execPath()` matching other tests
5
+
6
+
Currently most TS tests use `Deno.execPath()` to identify where `deno` lives
7
+
In the event deno is not on the `$PATH` these tests will fail.
8
+
If deno is on the `$PATH` you can end up testing the wrong instance of `deno`.
9
+
---
10
+
tests/unit/process_test.ts | 4 ++--
11
+
1 file changed, 2 insertions(+), 2 deletions(-)
12
+
13
+
diff --git a/tests/unit/process_test.ts b/tests/unit/process_test.ts
14
+
index 7b82fe5ba782f5..1c26a6f990d1b0 100644
15
+
--- a/tests/unit/process_test.ts
16
+
+++ b/tests/unit/process_test.ts
17
+
@@ -623,7 +623,7 @@ Deno.test(
18
+
19
+
// @ts-ignore `Deno.run()` was soft-removed in Deno 2.
20
+
const p = Deno.run({
21
+
- cmd: ["deno", "run", "--watch", tempFile],
22
+
+ cmd: [Deno.execPath(), "run", "--watch", tempFile],
23
+
stdout: "piped",
24
+
stderr: "null",
25
+
});
26
+
@@ -661,7 +661,7 @@ Deno.serve({ signal: ac.signal }, () => new Response("Hello World"));
27
+
28
+
// @ts-ignore `Deno.run()` was soft-removed in Deno 2.
29
+
const p = Deno.run({
30
+
- cmd: ["deno", "run", "--watch", tempFile],
31
+
+ cmd: [Deno.execPath(), "run", "--watch", tempFile],
32
+
stdout: "piped",
33
+
stderr: "null",
34
+
});