summaryrefslogtreecommitdiff
path: root/pkgs/development/web/deno/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/web/deno/default.nix')
-rw-r--r--pkgs/development/web/deno/default.nix15
1 files changed, 8 insertions, 7 deletions
diff --git a/pkgs/development/web/deno/default.nix b/pkgs/development/web/deno/default.nix
index 9b645fb55e34..80e68003b4e5 100644
--- a/pkgs/development/web/deno/default.nix
+++ b/pkgs/development/web/deno/default.nix
@@ -11,25 +11,29 @@
, CoreServices
, Metal
, Foundation
+, QuartzCore
, librusty_v8 ? callPackage ./librusty_v8.nix { }
}:
rustPlatform.buildRustPackage rec {
pname = "deno";
- version = "1.9.2";
+ version = "1.10.2";
src = fetchFromGitHub {
owner = "denoland";
repo = pname;
rev = "v${version}";
- sha256 = "sha256-FKhSFqFZhqzrXrJcBc0YBNHoUq0/1+ULZ9sE+LyNQTI=";
+ sha256 = "sha256-uePCEYcYahsxcgA+GDcloqqo+dr7Y2N/9nps6Y79D58=";
};
- cargoSha256 = "sha256-Pp322D7YtdpeNnKWcE78tvLh5nFNcrh9oGYX2eCiPzI=";
+ cargoSha256 = "sha256-6fm1RWuTVWCE6nKgkC/SRQYRXGf9SGv7kAXWNqsdQS8=";
# Install completions post-install
nativeBuildInputs = [ installShellFiles ];
- buildInputs = lib.optionals stdenv.isDarwin [ libiconv libobjc Security CoreServices Metal Foundation ];
+ buildAndTestSubdir = "cli";
+
+ buildInputs = lib.optionals stdenv.isDarwin
+ [ libiconv libobjc Security CoreServices Metal Foundation QuartzCore ];
# The rusty_v8 package will try to download a `librusty_v8.a` release at build time to our read-only filesystem
# To avoid this we pre-download the file and place it in the locations it will require it in advance
@@ -51,9 +55,6 @@ rustPlatform.buildRustPackage rec {
doCheck = false;
postInstall = ''
- # remove test plugin and test server
- rm -r $out/lib $out/bin/test_server $out/bin/denort
-
installShellCompletion --cmd deno \
--bash <($out/bin/deno completions bash) \
--fish <($out/bin/deno completions fish) \