1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00
nixpkgs/pkgs/build-support/vm/test.nix

40 lines
742 B
Nix
Raw Normal View History

2021-08-20 22:31:26 +01:00
with import ../../.. { };
with vmTools;
2019-08-13 22:52:01 +01:00
{
# Run the PatchELF derivation in a VM.
buildPatchelfInVM = runInLinuxVM patchelf;
buildHelloInVM = runInLinuxVM hello;
buildPanInVM = runInLinuxVM pan;
2013-07-04 17:23:25 +01:00
testRPMImage = makeImageTestScript diskImages.fedora16x86_64;
buildPatchelfRPM = buildRPM {
name = "patchelf-rpm";
src = patchelf.src;
diskImage = diskImages.fedora16x86_64;
};
testUbuntuImage = makeImageTestScript diskImages.ubuntu810i386;
buildInDebian = runInLinuxImage (stdenv.mkDerivation {
name = "deb-compile";
src = patchelf.src;
diskImage = diskImages.ubuntu1204i386;
memSize = 512;
2021-08-20 22:31:26 +01:00
prePhases = [ sysInfoPhase ];
sysInfoPhase = ''
dpkg-query --list
'';
});
}