bscpkgs/test/ci.nix

32 lines
464 B
Nix
Raw Normal View History

2023-03-02 11:15:25 +01:00
{ self, super, bsc, callPackage }:
let
stdenv = self.stdenv;
in
stdenv.mkDerivation rec {
name = "ci";
src = ./ci.nix;
dontUnpack = true;
# Just build some packages
buildInputs = with bsc; [
extrae
];
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"
'';
installPhase = ''
touch $out
'';
}