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