Skip to content

Commit

Permalink
deno_1: drop; deno: fix on x86_64-darwin (#347974)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilazy authored Oct 16, 2024
2 parents 961e429 + b97ec51 commit cd99542
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 247 deletions.
3 changes: 2 additions & 1 deletion nixos/doc/manual/release-notes/rl-2411.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@

- `grafana` has been updated to version 11.1. This version doesn't support setting `http_addr` to a hostname anymore, an IP address is expected.

- `deno` has been updated to v2 which has breaking changes. Upstream will be abandoning v1 soon but for now you can use `deno_1` if you are yet to migrate (will be removed prior to cutting a final 24.11 release).
- `deno` has been updated to Deno 2, which has breaking changes.
See the [migration guide](https://docs.deno.com/runtime/reference/migration_guide/) for details.

- `gogs` has been removed. Upstream development has stalled and it has several
[critical vulnerabilities](https://github.com/gogs/gogs/issues/7777) that weren't addressed
Expand Down
12 changes: 0 additions & 12 deletions pkgs/by-name/de/deno/1/librusty_v8.nix

This file was deleted.

118 changes: 0 additions & 118 deletions pkgs/by-name/de/deno/1/package.nix

This file was deleted.

1 change: 0 additions & 1 deletion pkgs/by-name/de/deno/1/tests/basic.ts

This file was deleted.

79 changes: 0 additions & 79 deletions pkgs/by-name/de/deno/1/tests/default.nix

This file was deleted.

1 change: 0 additions & 1 deletion pkgs/by-name/de/deno/1/tests/import-json/data.json

This file was deleted.

2 changes: 0 additions & 2 deletions pkgs/by-name/de/deno/1/tests/import-json/index.ts

This file was deleted.

3 changes: 0 additions & 3 deletions pkgs/by-name/de/deno/1/tests/import-ts/index.ts

This file was deleted.

3 changes: 0 additions & 3 deletions pkgs/by-name/de/deno/1/tests/import-ts/lib.ts

This file was deleted.

1 change: 0 additions & 1 deletion pkgs/by-name/de/deno/1/tests/read-file/data.txt

This file was deleted.

5 changes: 0 additions & 5 deletions pkgs/by-name/de/deno/1/tests/read-file/index.ts

This file was deleted.

27 changes: 8 additions & 19 deletions pkgs/by-name/de/deno/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
cmake,
protobuf,
installShellFiles,
libiconv,
darwin,
apple-sdk_11,
darwinMinVersionHook,
librusty_v8 ? callPackage ./librusty_v8.nix {
inherit (callPackage ./fetchers.nix { }) fetchLibrustyV8;
},
Expand Down Expand Up @@ -45,20 +45,12 @@ rustPlatform.buildRustPackage rec {
protobuf
installShellFiles
];
buildInputs = lib.optionals stdenv.isDarwin (
[
libiconv
darwin.libobjc
]
++ (with darwin.apple_sdk_11_0.frameworks; [
Security
CoreServices
Metal
MetalPerformanceShaders
Foundation
QuartzCore
])
);

buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
apple-sdk_11
# V8 supports 10.15+; binary references `aligned_alloc` directly
(darwinMinVersionHook "10.15")
];

buildAndTestSubdir = "cli";

Expand Down Expand Up @@ -116,8 +108,5 @@ rustPlatform.buildRustPackage rec {
"x86_64-darwin"
"aarch64-darwin"
];
# NOTE: `aligned_alloc` error on darwin SDK < 10.15. Can't do usual overrideSDK with rust toolchain in current implementation.
# Should be fixed with darwin SDK refactor and can be revisited.
badPlatforms = [ "x86_64-darwin" ];
};
}
2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6822,8 +6822,6 @@ with pkgs;

deer = callPackage ../shells/zsh/zsh-deer { };

deno_1 = callPackage ../by-name/de/deno/1/package.nix { };

deqp-runner = callPackage ../tools/graphics/deqp-runner { };

detox = callPackage ../tools/misc/detox { };
Expand Down

0 comments on commit cd99542

Please sign in to comment.