2008-03-17 18:08:40 +01:00
|
|
|
with import ../../.. {};
|
2008-03-17 18:29:07 +01:00
|
|
|
with vmTools;
|
2008-03-17 18:08:40 +01:00
|
|
|
|
|
|
|
rec {
|
|
|
|
|
|
|
|
|
|
|
|
# Run the PatchELF derivation in a VM.
|
|
|
|
buildPatchelfInVM = runInLinuxVM patchelf;
|
|
|
|
|
|
|
|
|
2008-04-09 14:51:54 +02:00
|
|
|
testRPMImage = makeImageTestScript diskImages.fedora8i386;
|
2008-03-17 18:08:40 +01:00
|
|
|
|
|
|
|
|
|
|
|
buildPatchelfRPM = buildRPM {
|
|
|
|
name = "patchelf-rpm";
|
|
|
|
src = patchelf.src;
|
2010-06-14 18:48:36 +02:00
|
|
|
diskImage = diskImages.fedora13i386;
|
2008-03-17 18:08:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2008-11-12 18:15:09 +01:00
|
|
|
testUbuntuImage = makeImageTestScript diskImages.ubuntu810i386;
|
2008-03-17 18:08:40 +01:00
|
|
|
|
|
|
|
|
|
|
|
buildInDebian = runInLinuxImage (stdenv.mkDerivation {
|
|
|
|
name = "deb-compile";
|
2009-02-24 11:56:42 +01:00
|
|
|
src = patchelf.src;
|
2008-11-12 18:15:09 +01:00
|
|
|
diskImage = diskImages.ubuntu810i386;
|
2008-03-17 18:08:40 +01:00
|
|
|
memSize = 512;
|
2008-03-17 18:29:07 +01:00
|
|
|
phases = "sysInfoPhase unpackPhase patchPhase configurePhase buildPhase checkPhase installPhase fixupPhase distPhase";
|
|
|
|
sysInfoPhase = ''
|
|
|
|
dpkg-query --list
|
|
|
|
'';
|
2008-03-17 18:08:40 +01:00
|
|
|
});
|
|
|
|
|
2008-04-29 14:32:17 +02:00
|
|
|
|
|
|
|
testFreeBSD = runInGenericVM {
|
|
|
|
name = "aterm-freebsd";
|
|
|
|
src = aterm242fixes.src;
|
|
|
|
diskImage = "/tmp/freebsd-7.0.qcow";
|
|
|
|
|
|
|
|
postPreVM = ''
|
|
|
|
cp $src aterm.tar.bz2
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
set > /tmp/my-env
|
|
|
|
. /mnt/saved-env
|
|
|
|
. /tmp/my-env
|
|
|
|
unset TEMP
|
|
|
|
unset TEMPDIR
|
|
|
|
unset TMP
|
|
|
|
unset TMPDIR
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
|
|
|
echo "Hello World!!!"
|
|
|
|
mkdir /mnt/out
|
|
|
|
echo "bar" > /mnt/out/foo
|
|
|
|
|
|
|
|
cd /tmp
|
|
|
|
tar xvf /mnt/aterm.tar.bz2
|
|
|
|
cd aterm-*
|
|
|
|
./configure --prefix=/mnt/out
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
'';
|
|
|
|
};
|
2008-03-17 18:08:40 +01:00
|
|
|
|
2008-04-29 14:32:17 +02:00
|
|
|
|
2008-03-17 18:08:40 +01:00
|
|
|
}
|