fix(gsr): fix gsr build
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2023-12-31 16:24:57 -05:00
parent 9f2b537bf7
commit 3318e7bfd1

View file

@ -5,12 +5,30 @@
gpu-screen-recorder-src, gpu-screen-recorder-src,
... ...
}: let }: let
gsr = pkgs.gpu-screen-recorder.overrideAttrs (o: { gsr = pkgs.stdenv.mkDerivation {
name = "gpu-screen-recorder";
version = gpu-screen-recorder-src.rev; version = gpu-screen-recorder-src.rev;
src = gpu-screen-recorder-src; src = gpu-screen-recorder-src;
postPatch = ""; nativeBuildInputs = with pkgs; [
pkg-config
makeWrapper
];
buildInputs = with pkgs; [
libpulseaudio
ffmpeg
wayland
libdrm
libva
xorg.libXcomposite
xorg.libXrandr
];
buildPhase = ''
./build.sh
'';
installPhase = '' installPhase = ''
strip gsr-kms-server strip gsr-kms-server
@ -25,7 +43,7 @@
pkgs.libglvnd pkgs.libglvnd
]}" ]}"
''; '';
}); };
in { in {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
pulseaudio # for getting audio sink pulseaudio # for getting audio sink