-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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
gpu-screen-recorder{,-gtk}: add passthru.updateScript #367552
base: master
Are you sure you want to change the base?
Conversation
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.
Don't know how to test it locally, but it looks great.
5.0.0 is now out: https://git.dec05eba.com/gpu-screen-recorder/ |
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 is also gpu-screen-recorder-ui now, which is interesting |
I was just opening a packaging request for this. Looks like someone already did some preliminary work: https://github.com/Nowaaru/nix-diary/tree/6230e94b178924e7455a1dc0d318f50e10c8aec6/modules/gpu-screen-recorder/packages. The module would probably need to be updated as well. |
3981d06
to
f48ec9d
Compare
f48ec9d
to
092f692
Compare
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.
nixpkgs-review
result
Generated using nixpkgs-review
.
Command: nixpkgs-review pr 367552
x86_64-linux
✅ 2 packages built:
- gpu-screen-recorder
- gpu-screen-recorder-gtk
}: | ||
|
||
stdenv.mkDerivation (finalAttrs: { | ||
stdenv.mkDerivation rec { |
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.
stdenv.mkDerivation rec { | |
stdenv.mkDerivation (finalAttrs: { |
https://discourse.nixos.org/t/avoid-rec-expresions-in-nixpkgs/8293
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.
Using finalAttrs
instead of rec
for version
here would lead to #310373. I don't think there is a consensus on the best solution, but rec
works fine here.
url = "https://dec05eba.com/snapshot/gpu-screen-recorder-gtk.git.${finalAttrs.version}.tar.gz"; | ||
hash = "sha256-uXbiuA1XPWZVwQGLh47rKzCZSEUEPWqYALqMuCGA7do="; | ||
src = fetchgit { | ||
url = "https://repo.dec05eba.com/${pname}"; |
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.
url = "https://repo.dec05eba.com/${pname}"; | |
url = "https://repo.dec05eba.com/gpu-screen-recorder-gtk"; |
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.
rec
being constant doesn't introduce any overriding traps here, so whether you use ${pname}
or a literal value is a subjective choice. Imo this is nicer because it can be shared across all gpu-screen-recorder-*
packages.
postPatch = '' | ||
substituteInPlace extra/gpu-screen-recorder.service \ | ||
--replace-fail "ExecStart=gpu-screen-recorder" "ExecStart=$out/bin/gpu-screen-recorder" | ||
''; | ||
|
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.
This change is included in the by-name commit
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.
Nice catch! While we are here, mind reviewing #367548? :)
092f692
to
8b1deb5
Compare
Closes #359178
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.