feat(3p/nix): Add installCheckPhase
Add an installCheckPhase that runs the appropriate substituteAll on common.sh and runs the lang.sh tests with the build artifacts in the PATH. Change-Id: I2df5a93b8f3ffdfdc194a0e7d6b6669ef520c345 Reviewed-on: https://cl.tvl.fyi/c/depot/+/561 Reviewed-by: glittershark <grfn@gws.fyi>
This commit is contained in:
parent
b94d9f89dc
commit
368e8d1edd
2 changed files with 14 additions and 0 deletions
1
third_party/default.nix
vendored
1
third_party/default.nix
vendored
|
@ -126,6 +126,7 @@ let
|
||||||
texlive
|
texlive
|
||||||
thttpd
|
thttpd
|
||||||
tree
|
tree
|
||||||
|
utillinux
|
||||||
which
|
which
|
||||||
writeShellScript
|
writeShellScript
|
||||||
writeShellScriptBin
|
writeShellScriptBin
|
||||||
|
|
13
third_party/nix/default.nix
vendored
13
third_party/nix/default.nix
vendored
|
@ -48,11 +48,24 @@ in pkgs.llvmPackages.libcxxStdenv.mkDerivation {
|
||||||
xz
|
xz
|
||||||
];
|
];
|
||||||
|
|
||||||
|
installCheckInputs = with pkgs; [
|
||||||
|
utillinux
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with pkgs; [
|
propagatedBuildInputs = with pkgs; [
|
||||||
boost
|
boost
|
||||||
largeBoehm
|
largeBoehm
|
||||||
];
|
];
|
||||||
|
|
||||||
|
doInstallCheck = true;
|
||||||
|
|
||||||
|
installCheckPhase = ''
|
||||||
|
export PATH=$out/bin:$PATH
|
||||||
|
cd ../tests/
|
||||||
|
substituteAll common.sh.in common.sh
|
||||||
|
bash lang.sh
|
||||||
|
'';
|
||||||
|
|
||||||
# Install the various symlinks to the Nix binary which users expect
|
# Install the various symlinks to the Nix binary which users expect
|
||||||
# to exist.
|
# to exist.
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
|
Loading…
Reference in a new issue