2021-08-20 22:31:26 +01:00
|
|
|
with import ../../.. { };
|
2008-03-17 17:29:07 +00:00
|
|
|
with vmTools;
|
2008-03-17 17:08:40 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
{
|
2008-03-17 17:08:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Run the PatchELF derivation in a VM.
|
|
|
|
buildPatchelfInVM = runInLinuxVM patchelf;
|
|
|
|
|
2013-07-04 23:06:08 +01:00
|
|
|
buildHelloInVM = runInLinuxVM hello;
|
|
|
|
|
2021-12-31 15:38:42 +00:00
|
|
|
buildPcmanrmInVM = runInLinuxVM (pcmanfm.overrideAttrs (old: {
|
|
|
|
# goes out-of-memory with many cores
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
}));
|
2008-03-17 17:08:40 +00:00
|
|
|
|
2021-12-17 14:46:17 +00:00
|
|
|
testRPMImage = makeImageTestScript diskImages.fedora27x86_64;
|
2008-03-17 17:08:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
buildPatchelfRPM = buildRPM {
|
|
|
|
name = "patchelf-rpm";
|
|
|
|
src = patchelf.src;
|
2021-12-17 14:46:17 +00:00
|
|
|
diskImage = diskImages.fedora27x86_64;
|
2021-12-28 13:09:35 +00:00
|
|
|
diskImageFormat = "qcow2";
|
2008-03-17 17:08:40 +00:00
|
|
|
};
|
|
|
|
|
2013-07-04 23:06:08 +01:00
|
|
|
|
2021-12-17 14:46:17 +00:00
|
|
|
testUbuntuImage = makeImageTestScript diskImages.ubuntu1804i386;
|
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;
|
2021-10-27 23:02:44 +01:00
|
|
|
diskImage = diskImages.ubuntu1804i386;
|
2021-10-27 23:05:27 +01:00
|
|
|
diskImageFormat = "qcow2";
|
2008-03-17 17:08:40 +00:00
|
|
|
memSize = 512;
|
2021-10-27 23:02:44 +01:00
|
|
|
postHook = ''
|
2008-03-17 17:29:07 +00:00
|
|
|
dpkg-query --list
|
|
|
|
'';
|
2008-03-17 17:08:40 +00:00
|
|
|
});
|
|
|
|
|
2011-01-05 09:42:56 +00:00
|
|
|
}
|