nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 42 lines 880 B view raw
1with import ../../.. { }; 2with vmTools; 3 4{ 5 6 7 # Run the PatchELF derivation in a VM. 8 buildPatchelfInVM = runInLinuxVM patchelf; 9 10 buildHelloInVM = runInLinuxVM hello; 11 12 buildPcmanrmInVM = runInLinuxVM (pcmanfm.overrideAttrs (old: { 13 # goes out-of-memory with many cores 14 enableParallelBuilding = false; 15 })); 16 17 testRPMImage = makeImageTestScript diskImages.fedora27x86_64; 18 19 20 buildPatchelfRPM = buildRPM { 21 name = "patchelf-rpm"; 22 src = patchelf.src; 23 diskImage = diskImages.fedora27x86_64; 24 diskImageFormat = "qcow2"; 25 }; 26 27 28 testUbuntuImage = makeImageTestScript diskImages.ubuntu1804i386; 29 30 31 buildInDebian = runInLinuxImage (stdenv.mkDerivation { 32 name = "deb-compile"; 33 src = patchelf.src; 34 diskImage = diskImages.ubuntu1804i386; 35 diskImageFormat = "qcow2"; 36 memSize = 512; 37 postHook = '' 38 dpkg-query --list 39 ''; 40 }); 41 42}