Loading pkgs/by-name/ed/edge-runtime/librusty_v8.nix +15 −9 Original line number Diff line number Diff line { lib, stdenv, fetchurl }: { lib, stdenv, fetchurl, }: let fetch_librusty_v8 = args: fetchurl { fetch_librusty_v8 = args: fetchurl { name = "librusty_v8-${args.version}"; url = "https://github.com/denoland/rusty_v8/releases/download/v${args.version}/librusty_v8_release_${stdenv.hostPlatform.rust.rustcTarget}.a"; sha256 = args.shas.${stdenv.hostPlatform.system}; Loading pkgs/by-name/ed/edge-runtime/package.nix +24 −12 Original line number Diff line number Diff line { stdenv , lib , callPackage , fetchFromGitHub , rustPlatform , nix-update-script , darwin , openssl , pkg-config { stdenv, lib, callPackage, fetchFromGitHub, rustPlatform, nix-update-script, darwin, openssl, pkg-config, }: let Loading @@ -31,10 +32,21 @@ rustPlatform.buildRustPackage { }; }; nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ]; nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ]; buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [ Security CoreFoundation SystemConfiguration ]); buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin ( with darwin.apple_sdk.frameworks; [ Security CoreFoundation SystemConfiguration ] ); # The 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 export it via RUSTY_V8_ARCHIVE Loading Loading
pkgs/by-name/ed/edge-runtime/librusty_v8.nix +15 −9 Original line number Diff line number Diff line { lib, stdenv, fetchurl }: { lib, stdenv, fetchurl, }: let fetch_librusty_v8 = args: fetchurl { fetch_librusty_v8 = args: fetchurl { name = "librusty_v8-${args.version}"; url = "https://github.com/denoland/rusty_v8/releases/download/v${args.version}/librusty_v8_release_${stdenv.hostPlatform.rust.rustcTarget}.a"; sha256 = args.shas.${stdenv.hostPlatform.system}; Loading
pkgs/by-name/ed/edge-runtime/package.nix +24 −12 Original line number Diff line number Diff line { stdenv , lib , callPackage , fetchFromGitHub , rustPlatform , nix-update-script , darwin , openssl , pkg-config { stdenv, lib, callPackage, fetchFromGitHub, rustPlatform, nix-update-script, darwin, openssl, pkg-config, }: let Loading @@ -31,10 +32,21 @@ rustPlatform.buildRustPackage { }; }; nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ]; nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ]; buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [ Security CoreFoundation SystemConfiguration ]); buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin ( with darwin.apple_sdk.frameworks; [ Security CoreFoundation SystemConfiguration ] ); # The 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 export it via RUSTY_V8_ARCHIVE Loading