File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ OPTIONAL_FLAGS=$(nix-instantiate -I "nixpkgs=$BASE_DIR/tools/nix/pkgs.nix" --eva
1515
1616DRV=$(
1717 cd " $BASE_DIR "
18- # shellcheck disable=SC2086
18+ # shellcheck disable=SC2016, SC2086
1919 nix-instantiate -I " nixpkgs=./tools/nix/pkgs.nix" shell.nix \
2020 $OPTIONAL_FLAGS \
2121 --arg sharedLibDeps ' {
@@ -32,7 +32,20 @@ DRV=$(
3232 in
3333 (import ./tools/nix/devTools.nix { })
3434 ++ pkgs.lib.flatten (
35- with (pkgs.callPackage ./tools/nix/v8.nix { });
35+ with (
36+ let
37+ # The pinned stdenv does not lazy-evaluates the src, making it complain about missing files (due to the sparse checkout).
38+ # Since we are not building the derivation, only interested in its attributes, using a more modern stdenv should have no
39+ # effect on the output (it adds some download and parse time, should be less than a non-sparse checkout).
40+ repo = "https://github.com/NixOS/nixpkgs";
41+ rev = "6062ba1a1b8b6281b12533c9075a2dbeb38f7e49";
42+ nixpkgs_26_05 = import (builtins.fetchTarball {
43+ url = "${repo}/archive/${rev}.tar.gz";
44+ sha256 = "1dfmhgmairiq0k50vflzqfqaiz6v9dfvbf60yh6fhnkna312daiy";
45+ }) { };
46+ in
47+ pkgs.callPackage ./tools/nix/v8.nix { inherit (nixpkgs_26_05) stdenv; }
48+ );
3649 [
3750 # We do not want to build V8 here, but still want to list its requisites.
3851 buildInputs
You can’t perform that action at this time.
0 commit comments