Skip to content

Commit

Permalink
Merge branch 'build-with-strictDeps' of https://github.com/hercules-c…
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Apr 15, 2021
2 parents 3ee0ecd + ff1a214 commit 76980a1
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
9 changes: 7 additions & 2 deletions flake.nix
Expand Up @@ -78,7 +78,8 @@
buildPackages.git
buildPackages.mercurial
buildPackages.jq
];
]
++ lib.optionals stdenv.isLinux [(pkgs.util-linuxMinimal or pkgs.utillinuxMinimal)];

buildDeps =
[ curl
Expand All @@ -90,7 +91,7 @@
lowdown
gmock
]
++ lib.optionals stdenv.isLinux [libseccomp (pkgs.util-linuxMinimal or pkgs.utillinuxMinimal)]
++ lib.optionals stdenv.isLinux [libseccomp]
++ lib.optional (stdenv.isLinux || stdenv.isDarwin) libsodium
++ lib.optional stdenv.isx86_64 libcpuid;

Expand Down Expand Up @@ -233,6 +234,8 @@

separateDebugInfo = true;

strictDeps = true;

passthru.perl-bindings = with final; stdenv.mkDerivation {
name = "nix-perl-${version}";

Expand Down Expand Up @@ -517,6 +520,8 @@
installCheckFlags = "sysconfdir=$(out)/etc";

stripAllList = ["bin"];

strictDeps = true;
};
});

Expand Down
4 changes: 2 additions & 2 deletions tests/build-remote.sh
@@ -1,5 +1,5 @@
if ! canUseSandbox; then exit; fi
if ! [[ $busybox =~ busybox ]]; then exit; fi
if ! canUseSandbox; then exit 99; fi
if ! [[ $busybox =~ busybox ]]; then exit 99; fi

unset NIX_STORE_DIR
unset NIX_STATE_DIR
Expand Down
2 changes: 1 addition & 1 deletion tests/gc-runtime.sh
Expand Up @@ -4,7 +4,7 @@ case $system in
*linux*)
;;
*)
exit 0;
exit 99;
esac

set -m # enable job control, needed for kill
Expand Down
4 changes: 2 additions & 2 deletions tests/linux-sandbox.sh
Expand Up @@ -2,13 +2,13 @@ source common.sh

clearStore

if ! canUseSandbox; then exit; fi
if ! canUseSandbox; then exit 99; fi

# Note: we need to bind-mount $SHELL into the chroot. Currently we
# only support the case where $SHELL is in the Nix store, because
# otherwise things get complicated (e.g. if it's in /bin, do we need
# /lib as well?).
if [[ ! $SHELL =~ /nix/store ]]; then exit; fi
if [[ ! $SHELL =~ /nix/store ]]; then exit 99; fi

chmod -R u+w $TEST_ROOT/store0 || true
rm -rf $TEST_ROOT/store0
Expand Down
2 changes: 1 addition & 1 deletion tests/recursive.sh
@@ -1,7 +1,7 @@
source common.sh

# FIXME
if [[ $(uname) != Linux ]]; then exit; fi
if [[ $(uname) != Linux ]]; then exit 99; fi

clearStore

Expand Down
2 changes: 1 addition & 1 deletion tests/shell.sh
Expand Up @@ -6,7 +6,7 @@ clearCache
nix shell -f shell-hello.nix hello -c hello | grep 'Hello World'
nix shell -f shell-hello.nix hello -c hello NixOS | grep 'Hello NixOS'

if ! canUseSandbox; then exit; fi
if ! canUseSandbox; then exit 99; fi

chmod -R u+w $TEST_ROOT/store0 || true
rm -rf $TEST_ROOT/store0
Expand Down

0 comments on commit 76980a1

Please sign in to comment.