i am an idiot, i forgot to remove the xdg portal config in configuration.nix on apollo, this broke screensharing
This commit is contained in:
parent
d28b00841c
commit
4d2554aae8
12 changed files with 418 additions and 35 deletions
40
base/virtualisation/kvmfr-git-package.nix
Normal file
40
base/virtualisation/kvmfr-git-package.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
# https://gist.github.com/j-brn/716a03822d256bc5bf5d77b951c7915c
|
||||
{ stdenv, lib, fetchFromGitHub, kernel, kmod, looking-glass-client, ... }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "kvmfr-${version}-${kernel.version}";
|
||||
version = "e25492a";
|
||||
|
||||
# src = looking-glass-client.src;
|
||||
src = fetchFromGitHub {
|
||||
owner = "gnif";
|
||||
repo = "LookingGlass";
|
||||
rev = version;
|
||||
sha256 = "sha256-efAO7KLdm7G4myUv6cS1gUSI85LtTwmIm+HGZ52arj8=";
|
||||
};
|
||||
sourceRoot = "source/module";
|
||||
hardeningDisable = [ "pic" "format" ];
|
||||
nativeBuildInputs = kernel.moduleBuildDependencies;
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace kvmfr.c \
|
||||
--replace 'MODULE_IMPORT_NS(DMA_BUF);' 'MODULE_IMPORT_NS("DMA_BUF");'
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"KVER=${kernel.modDirVersion}"
|
||||
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
install -D kvmfr.ko -t "$out/lib/modules/${kernel.modDirVersion}/kernel/drivers/misc/"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "This kernel module implements a basic interface to the IVSHMEM device for LookingGlass";
|
||||
homepage = "https://github.com/gnif/LookingGlass";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ j-brn ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue