Skip to content

Instantly share code, notes, and snippets.

View Slabity's full-sized avatar

Slabity Slabity

View GitHub Profile
{
description = "Simple overlay flake";
inputs.nixpkgs.url = "nixpkgs/release-20.03";
outputs = inputs@{ self, nixpkgs }: {
overlay = final: prev: {
wine = prev.wine.override ({
wineRelease = "staging";
{ stdenv, buildPythonPackage, fetchPypi
, setuptools_scm, pytest, pluggy, py
}:
buildPythonPackage rec {
pname = "graphene";
version = "2.1.8";
src = fetchPypi {
inherit pname version;
$ nix-shell -p gxr  
these derivations will be built:
/nix/store/f1v1qa74n187m7zk6mg1r4qcjsrpj791-gxr.drv
building '/nix/store/f1v1qa74n187m7zk6mg1r4qcjsrpj791-gxr.drv'...
unpacking sources
unpacking source archive /nix/store/wn63yl75ps80vylrd4wq5081hhn606r8-source
source root is source
patching sources
configuring
meson flags: --buildtype=plain --libdir=/nix/store/89b75q5q0mvg05vp2py434f85amzl5kw-gxr/lib --libexecdir=/nix/store/89b75q5q0mvg05vp2py434f85amzl5kw-gxr/libexec --bindir=/nix/store/89b75q5q0mvg05vp2py434f85amzl5kw-gxr/bin --sbindir=/nix/store/89b75q5q0mvg05vp2py434f85amzl5kw-gxr/sbin --includedir=/nix/store/89b75q5q0mvg05vp2py434f85amzl5kw-gxr/include --mandir=/nix/store/89b75q5q0mvg05vp2py434f85amzl5kw-gxr/share/man --infodir=/nix/store/89b75q5q0mvg05vp2py434f85amzl5kw-gxr/share/info --localedir=/nix/store/89b75q5q0mvg05vp2py434f85amzl5kw-gxr/share/locale -Dauto_fe
{ stdenv
, fetchFromGitLab
, meson
, ninja
, pkgconfig
, cmake
, glib
, gdk-pixbuf
, vulkan-loader
, vulkan-headers
MemoryProperties {
memory_types: [
MemoryType {
properties: (empty),
heap_index: 1,
},
MemoryType {
properties: (empty),
heap_index: 1,
},
1. Boot up a Linux console
* Virtual machine using VirtIO+Spice
2. Create a Framebuffer:
* Create Dumbbuffer and load image into it
3. Attach Framebuffer:
* Find Plane attached to the current CRTC+Connector
* Set Plane's FB_ID property to the framebuffer created
GetResources
Connectors: [connector::Handle(31)]
Encoders: [encoder::Handle(32)]
CRTCS: [crtc::Handle(30)]
Framebuffers: []
Planes: [plane::Handle(28), plane::Handle(29)]
CreateFramebuffer 1024 768
DumbBuffer { size: (1024, 768), length: 3145728, format: ARGB8888, pitch: 4096, handle: buffer::Handle(1) }
framebuffer::Handle(71)
GetResources
// map_ptr! macro takes an &Option<&mut &mut [T]> and returns the raw pointer
// map_len! macro takes an &Option<&mut &mut [T]> and returns the length
// map_shrink! macro takes an &Option<&mut &mut [T]> and dynamically shrinks it
// This function will fill the passed in buffers with data from an FFI function.
pub fn load_buffers(buffer_a: Option<&mut &mut [u32]>, buffer_b: Option<&mut &mut [u64]>) {
let mut ffi_buffer_holder = Buffer {
ptr_a: map_ptr!(&buffer_a),
ptr_b: map_ptr!(&buffer_b),
len_a: map_len!(&buffer_a),
$ QT_QPA_PLATFORM=wayland dbus-run-session kwin_wayland --xwayland "plasmashell -p org.kde.plasma.desktop"
No backend specified through command line argument, trying auto resolution
OpenGL vendor string: X.Org
OpenGL renderer string: Radeon RX 580 Series (POLARIS10, DRM 3.27.0, 5.0.3, LLVM 7.0.1)
OpenGL version string: 4.5 (Compatibility Profile) Mesa 18.3.4
OpenGL shading language version string: 4.50
Driver: Unknown
GPU class: Unknown
OpenGL version: 4.5
GLSL version: 4.50
$ kwin_wayland --xwayland "plasmashell -p org.kde.plasma.phone"
No backend specified through command line argument, trying auto resolution
OpenGL vendor string: X.Org
OpenGL renderer string: Radeon RX 580 Series (POLARIS10, DRM 3.27.0, 5.0.3, LLVM 7.0.1)
OpenGL version string: 4.5 (Compatibility Profile) Mesa 18.3.4
OpenGL shading language version string: 4.50
Driver: Unknown
GPU class: Unknown
OpenGL version: 4.5
GLSL version: 4.50