2008-03-17 10:08:40 -07:00
|
|
|
with import ../../.. {};
|
2008-03-17 10:29:07 -07:00
|
|
|
with vmTools;
|
2008-03-17 10:08:40 -07:00
|
|
|
|
2019-08-13 14:52:01 -07:00
|
|
|
{
|
2008-03-17 10:08:40 -07:00
|
|
|
|
|
|
|
|
|
|
|
# Run the PatchELF derivation in a VM.
|
|
|
|
buildPatchelfInVM = runInLinuxVM patchelf;
|
|
|
|
|
2013-07-04 15:06:08 -07:00
|
|
|
buildHelloInVM = runInLinuxVM hello;
|
|
|
|
|
|
|
|
buildPanInVM = runInLinuxVM pan;
|
|
|
|
|
2008-03-17 10:08:40 -07:00
|
|
|
|
2013-07-04 09:23:25 -07:00
|
|
|
testRPMImage = makeImageTestScript diskImages.fedora16x86_64;
|
2008-03-17 10:08:40 -07:00
|
|
|
|
|
|
|
|
|
|
|
buildPatchelfRPM = buildRPM {
|
|
|
|
name = "patchelf-rpm";
|
|
|
|
src = patchelf.src;
|
2012-03-07 01:47:22 -08:00
|
|
|
diskImage = diskImages.fedora16x86_64;
|
2008-03-17 10:08:40 -07:00
|
|
|
};
|
|
|
|
|
2013-07-04 15:06:08 -07:00
|
|
|
|
2008-11-12 09:15:09 -08:00
|
|
|
testUbuntuImage = makeImageTestScript diskImages.ubuntu810i386;
|
2008-03-17 10:08:40 -07:00
|
|
|
|
2013-07-04 15:06:08 -07:00
|
|
|
|
2008-03-17 10:08:40 -07:00
|
|
|
buildInDebian = runInLinuxImage (stdenv.mkDerivation {
|
|
|
|
name = "deb-compile";
|
2009-02-24 02:56:42 -08:00
|
|
|
src = patchelf.src;
|
2012-05-10 19:04:14 -07:00
|
|
|
diskImage = diskImages.ubuntu1204i386;
|
2008-03-17 10:08:40 -07:00
|
|
|
memSize = 512;
|
2008-03-17 10:29:07 -07:00
|
|
|
phases = "sysInfoPhase unpackPhase patchPhase configurePhase buildPhase checkPhase installPhase fixupPhase distPhase";
|
|
|
|
sysInfoPhase = ''
|
|
|
|
dpkg-query --list
|
|
|
|
'';
|
2008-03-17 10:08:40 -07:00
|
|
|
});
|
|
|
|
|
2011-01-05 01:42:56 -08:00
|
|
|
}
|