fix(gsr): fix gsr build
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
9f2b537bf7
commit
3318e7bfd1
1 changed files with 21 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue