patches and low-level development discussion
 help / color / mirror / code / Atom feed
c56d2537c63768fafce140d39adc79ada7cb1881 blob 800 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 
{ stdenv, lib, makeWrapper, utillinux, crosvm, linux, sys-vms }:

stdenv.mkDerivation {
  name = "spectrum-vm";

  src = ./spectrum-vm.in;

  nativeBuildInputs = [ makeWrapper ];

  unpackPhase = ''
    cp $src spectrum-vm.in
  '';

  configurePhase = ''
    substituteAll spectrum-vm.in spectrum-vm
    chmod +x spectrum-vm
  '';

  getopt = "${lib.getBin utillinux}/bin/getopt";
  crosvm = "${lib.getBin crosvm}/bin/crosvm";
  kernel = "${sys-vms.comp.linux}/bzImage";
  rootfs = sys-vms.comp.rootfs.squashfs;

  installPhase = ''
    mkdir -p $out/bin
    cp spectrum-vm $out/bin
  '';

  meta = with lib; {
    description = "Utility for testing Spectrum VM components";
    maintainers = with maintainers; [ qyliss ];
    license = licenses.gpl3Plus;
    inherit (crosvm.meta) platforms;
  };
}
debug log:

solving c56d2537c63 ...
found c56d2537c63 in https://spectrum-os.org/git/nixpkgs

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).