Skip to content

Commit

Permalink
Merge pull request #7875 from obsidiansystems/try-fix-aarch64-static
Browse files Browse the repository at this point in the history
Fix `isStatic` arguments to `commonDeps`
  • Loading branch information
edolstra committed Feb 21, 2023
2 parents 8418d22 + 16111aa commit 8ed2965
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@
cross = forAllCrossSystems (crossSystem: make-pkgs crossSystem "stdenv");
});

commonDeps = { pkgs, isStatic ? false }: with pkgs; rec {
commonDeps =
{ pkgs
, isStatic ? pkgs.stdenv.hostPlatform.isStatic
}:
with pkgs; rec {
# Use "busybox-sandbox-shell" if present,
# if not (legacy) fallback and hope it's sufficient.
sh = pkgs.busybox-sandbox-shell or (busybox.override {
Expand Down Expand Up @@ -293,7 +297,13 @@
# Forward from the previous stage as we don’t want it to pick the lowdown override
nixUnstable = prev.nixUnstable;

nix = with final; with commonDeps { inherit pkgs; }; let
nix =
with final;
with commonDeps {
inherit pkgs;
inherit (currentStdenv.hostPlatform) isStatic;
};
let
canRunInstalled = currentStdenv.buildPlatform.canExecute currentStdenv.hostPlatform;
in currentStdenv.mkDerivation {
name = "nix-${version}";
Expand Down

0 comments on commit 8ed2965

Please sign in to comment.