patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob 410220d17959704a640c349b4ff5f9fd99a2c9ec 750 bytes (raw)
name: vm/app/hello-wayland.nix 	 # note: path name is non-authoritative(*)

 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
 
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: 2022 Unikie

{ config ? import ../../../nix/eval-config.nix {} }:

import ../../vm-lib/make-vm.nix { inherit config; } {
  name = "appvm-hello-wayland";
  wayland = true;
  run = config.pkgs.callPackage (
    { writeScript, hello-wayland, wayland-proxy-virtwl }:
    writeScript "run-hello-wayland" ''
      #!/bin/execlineb -P
      if { modprobe virtio-gpu }
      foreground { ln -ns /run/ext /run/opengl-driver }
      foreground { mkdir /run/user }
      foreground {
        umask 077
        mkdir /run/user/0
      }
      export XDG_RUNTIME_DIR /run/user/0
      ${wayland-proxy-virtwl}/bin/wayland-proxy-virtwl --virtio-gpu
      ${hello-wayland}/bin/hello-wayland
    ''
  ) { };
}

debug log:

solving 410220d ...
found 410220d in https://inbox.spectrum-os.org/spectrum-devel/20220930213533.1710618-10-alyssa.ross@unikie.com/ ||
	https://inbox.spectrum-os.org/spectrum-devel/20220930124940.1013577-10-alyssa.ross@unikie.com/

applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20220930213533.1710618-10-alyssa.ross@unikie.com/
diff --git a/vm/app/hello-wayland.nix b/vm/app/hello-wayland.nix
new file mode 100644
index 0000000..410220d

Checking patch vm/app/hello-wayland.nix...
Applied patch vm/app/hello-wayland.nix cleanly.

skipping https://inbox.spectrum-os.org/spectrum-devel/20220930124940.1013577-10-alyssa.ross@unikie.com/ for 410220d
index at:
100644 410220d17959704a640c349b4ff5f9fd99a2c9ec	vm/app/hello-wayland.nix

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

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).