@@ -1,4 +1,4 @@
1−{ stdenv, lib, util, mkPkgSet, recurseIntoAttrs, testSrc }:
1+{ stdenv, lib, numactl, util, mkPkgSet, recurseIntoAttrs, testSrc }:
22
33with lib;
44with util;
@@ -33,6 +33,7 @@ let
3333
3434 pkgId = p: "${p.identifier.name}-${p.identifier.version}";
3535 showDepends = component: concatMapStringsSep " " pkgId (component.depends or []);
36+ extraFlags = if stdenv.isLinux then "-L${numactl}/lib" else "";
3637
3738in recurseIntoAttrs {
3839 # Used for testing externally with nix-shell (../tests.sh).
@@ -47,7 +48,9 @@ in recurseIntoAttrs {
4748 decLibraryDepends = showDepends (pkgSet true).config.packages.test-with-packages.components.library;
4849 libraryDepends = showDepends (pkgSet false).config.packages.test-with-packages.components.library;
4950
50− buildCommand = ''
51+ src = ./.;
52+
53+ buildPhase = ''
5154 ########################################################################
5255 # test with-packages
5356
@@ -71,17 +74,25 @@ in recurseIntoAttrs {
7174 printf "runghc tests are not working yet for windows or ghcjs. skipping. " >& 2
7275 ''
7376 else ''
74− printf "checking that non doExactConfig liarary.env has the dependencies... " >& 2
75− ${library.env}/bin/${library.env.targetPrefix}runghc ${./Point.hs}
76− echo >& 2
77−
78− printf "checking that doExactConfig library.env has the dependencies... " >& 2
79− ${decLibrary.env}/bin/${decLibrary.env.targetPrefix}runghc ${./Point.hs}
80− echo >& 2
77+ echo "checking that non doExactConfig library.env has the dependencies... "
78+ echo "with runghc"
79+ ${library.env}/bin/${library.env.targetPrefix}runghc ./Point.hs
80+ echo "with ghc"
81+ ${library.env}/bin/${library.env.targetPrefix}ghc ${toString extraFlags} Point.hs 1> /dev/null
82+ ./Point
83+
84+ echo "checking that doExactConfig library.env has the dependencies... "
85+ echo "with runghc"
86+ ${decLibrary.env}/bin/${decLibrary.env.targetPrefix}runghc ./Point.hs
87+ echo "with ghc"
88+ ${decLibrary.env}/bin/${decLibrary.env.targetPrefix}ghc ${extraFlags} Point.hs 1> /dev/null
89+ ./Point
8190 '') + ''
8291 touch $out
8392 '';
8493
94+ dontInstall = true;
95+
8596 meta = {
8697 platforms = platforms.all;
8798 disabled = stdenv.hostPlatform.isMusl;