-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{nixos/gpu-screen-recorder,gpu-screen-recorder{-,gtk}}: update to 4.1.11, remove cap_sys_nice
#339874
{nixos/gpu-screen-recorder,gpu-screen-recorder{-,gtk}}: update to 4.1.11, remove cap_sys_nice
#339874
Conversation
Result of 1 package blacklisted:
3 packages built:
|
eef7b0c
to
eb7d78c
Compare
eb7d78c
to
5b1d68c
Compare
@JohnRTitor Could you take a look?
Edit: I would imagine this would be a better approach |
5b1d68c
to
94c83f9
Compare
...ns/video/gpu-screen-recorder/0001-Don-t-install-systemd-unit-files-using-absolute-path.patch
Outdated
Show resolved
Hide resolved
94c83f9
to
22c443c
Compare
Should the packages use the unstable updater? I believe @dec05eba wants users to use the latest commit to master. |
Thanks for the additional reviews! Tomorrow, I will take a look and try to implement the suggestions |
These days gpu screen recorder has proper versions and I now also created a tag for the latest release and will continue doing so for new releases. The tag is now visible here: https://git.dec05eba.com/gpu-screen-recorder/ (version 4.1.11). I recommend using the latest release instead of master now. There is also a changelog for versions available here: https://git.dec05eba.com/gpu-screen-recorder-gtk/tree/com.dec05eba.gpu_screen_recorder.appdata.xml#n82 |
pkgs/applications/video/gpu-screen-recorder/gpu-screen-recorder-gtk.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/video/gpu-screen-recorder/gpu-screen-recorder-gtk.nix
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll also need to close the finalAttrs portion, can't seem to add it to the Github review for whatever reason.
pkgs/applications/video/gpu-screen-recorder/gpu-screen-recorder-gtk.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/video/gpu-screen-recorder/gpu-screen-recorder-gtk.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/video/gpu-screen-recorder/gpu-screen-recorder-gtk.nix
Outdated
Show resolved
Hide resolved
Co-authored-by: Keenan Weaver <[email protected]>
Co-authored-by: Keenan Weaver <[email protected]>
Co-authored-by: Keenan Weaver <[email protected]>
Co-authored-by: Keenan Weaver <[email protected]>
I’ve decided to drop the module refactor from this PR. I'll need more time to think it through and implement it properly. I don’t want to slow down this PR any further, so I’ll create another PR in the near future for the module |
cap_sys_nice
Reason: NixOS#339874 (comment) Co-authored-by: dec05eba <[email protected]>
eaae587
to
7b69d08
Compare
Result of 1 package blacklisted:
2 packages built:
|
Result of 1 package blacklisted:
2 packages built:
|
'' | ||
gappsWrapperArgs+=(--prefix PATH : ${wrapperDir}) | ||
gappsWrapperArgs+=(--suffix PATH : ${lib.makeBinPath [ gpu-screen-recorder-wrapped ]}) | ||
gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : ${ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We cannot use patchelf?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not exactly sure how that would be implemented..
}; | ||
in | ||
'' | ||
gappsWrapperArgs+=(--prefix PATH : ${wrapperDir}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can amend a list to the var
Trying to run it, I get this: ┌───────────────────>
│keenan in results/gpu-screen-recorder/bin🔒
❄️ bsh ›
└─>./gpu-screen-recorder -w screen -f 60 -a default_output -o "$HOME/Videos/video.mp4"
amdgpu: amdgpu_cs_ctx_create2 failed. (-13)
Info: using h264 encoder because a codec was not specified
gsr info: gsr_kms_client_init: waiting for server to connect
kms server info: connecting to the client
gsr info: gsr_kms_client_init: server connected
gsr info: replacing file-backed unix domain socket with socketpair
kms server info: connected to the client
kms server error: expected gpu screen recorder protocol version to be 2, but it's 4
^Cgsr error: gsr_kms_client_replace_connection: failed to receive response
gsr error: gsr_capture_start failed Recording file doesn't get written. Don't know if it's because of my current gpu-screen-recorder instance. (I have a systemd service for replay autostart which I stopped for testing this.) But the package builds fine to 4.1.11. The 'current' gpu-screen-recorder records fine. System info:
Can anyone else confirm similar issues? |
You need to install the program rather than run it locally in the directory. gpu screen recorder will launch gsr-kms-server (also installed by gpu screen recorder) from PATH and the version of gsr-kms-server needs to match the version in gpu screen recorder. If you are running a local version of gpu screen recorder but have another version installed on the system then it can fail if there are changes between the versions. |
Lo and behold, the author is correct! Working great for me in 'normal' and 'replay' modes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bumping to latest
pkgs/applications/video/gpu-screen-recorder/gpu-screen-recorder-gtk.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/video/gpu-screen-recorder/gpu-screen-recorder-gtk.nix
Outdated
Show resolved
Hide resolved
Co-authored-by: Keenan Weaver <[email protected]>
Co-authored-by: Keenan Weaver <[email protected]>
vulkan-headers is a new dependency that should be added for gpu-screen-recorder (build dependency) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added vulkan-headers
per #339874 (comment) Confirmed building
0c23c16
to
04a6068
Compare
Result of 1 package blacklisted:
2 packages built:
|
Superseeds #335546 |
Description of changes
gpu-screen-recorder{-,gtk}
to 4.1.11lib.mesonBool
inmesonFlags = [ ... ]
addDriverRunpath.driverLink
toLD_LIBRARY_PATH
for bothcap_sys_nice
#339874 (comment)0001-Don-t-install-systemd-unit-files-using-absolute-path
as it's no longer needed (surpass by(lib.mesonBool "systemd" false)
)Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.