noBrokenSymlinks: move hook to beginning of defaultNativeBuildInputs
This protects the rest of the standard setup hooks from unreadable and other broken symlinks. (Otherwise, they can choke on the `readlink` step and fail silently before `no-broken-symlinks.sh`` is even reached.)
This commit is contained in:
@@ -69,6 +69,7 @@ let
|
||||
defaultNativeBuildInputs =
|
||||
extraNativeBuildInputs
|
||||
++ [
|
||||
../../build-support/setup-hooks/no-broken-symlinks.sh
|
||||
../../build-support/setup-hooks/audit-tmpdir.sh
|
||||
../../build-support/setup-hooks/compress-man-pages.sh
|
||||
../../build-support/setup-hooks/make-symlinks-relative.sh
|
||||
@@ -77,7 +78,6 @@ let
|
||||
../../build-support/setup-hooks/move-sbin.sh
|
||||
../../build-support/setup-hooks/move-systemd-user-units.sh
|
||||
../../build-support/setup-hooks/multiple-outputs.sh
|
||||
../../build-support/setup-hooks/no-broken-symlinks.sh
|
||||
../../build-support/setup-hooks/patch-shebangs.sh
|
||||
../../build-support/setup-hooks/prune-libtool-files.sh
|
||||
../../build-support/setup-hooks/reproducible-builds.sh
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
# ordering should match defaultNativeBuildInputs
|
||||
|
||||
{
|
||||
no-broken-symlinks = import ./no-broken-symlinks.nix { inherit stdenv lib pkgs; };
|
||||
# TODO: add audit-tmpdir
|
||||
compress-man-pages =
|
||||
let
|
||||
@@ -97,7 +98,6 @@
|
||||
[[ -e $out/bin/foo ]]
|
||||
'';
|
||||
};
|
||||
no-broken-symlinks = import ./no-broken-symlinks.nix { inherit stdenv lib pkgs; };
|
||||
# TODO: add multiple-outputs
|
||||
patch-shebangs = import ./patch-shebangs.nix { inherit stdenv lib pkgs; };
|
||||
prune-libtool-files =
|
||||
|
||||
Reference in New Issue
Block a user