Archived
1
0
forked from rarias/bscpkgs
This repository has been archived on 2025-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
bscpkgs/test/ci.nix

33 lines
504 B
Nix

{ self, super, bsc, testPkgs }:
let
stdenv = self.stdenv;
in
stdenv.mkDerivation rec {
name = "ci";
src = ./ci.nix;
dontUnpack = true;
# Just build some packages
buildInputs = testPkgs;
buildPhase = ''
if [ -e /boot ]; then
echo Build is NOT under chroot
echo This is the content of / :
ls -l /
exit 1
fi
echo "OK: Build is under chroot"
echo "buildInputs:"
printf -- "- %s\n" $buildInputs
'';
installPhase = ''
touch $out
'';
}