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