-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
gpu-screen-recorder{,-gtk}: add passthru.updateScript, update #367552
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
Changes from all commits
e39a299
2f3a205
ee02281
9bfb3e7
6fe3a61
f18cf01
110d7b2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,7 +1,7 @@ | ||||||
| { | ||||||
| stdenv, | ||||||
| lib, | ||||||
| fetchurl, | ||||||
| fetchgit, | ||||||
| pkg-config, | ||||||
| addDriverRunpath, | ||||||
| desktop-file-utils, | ||||||
|
|
@@ -19,19 +19,19 @@ | |||||
| wayland, | ||||||
| wrapGAppsHook3, | ||||||
| wrapperDir ? "/run/wrappers/bin", | ||||||
| gitUpdater, | ||||||
| }: | ||||||
|
|
||||||
| stdenv.mkDerivation (finalAttrs: { | ||||||
| stdenv.mkDerivation rec { | ||||||
| pname = "gpu-screen-recorder-gtk"; | ||||||
| version = "5.1.6"; | ||||||
| version = "5.7.0"; | ||||||
|
|
||||||
| src = fetchurl { | ||||||
| url = "https://dec05eba.com/snapshot/gpu-screen-recorder-gtk.git.${finalAttrs.version}.tar.gz"; | ||||||
| hash = "sha256-op5cDILQglVAW/oajc0rdrMC02JZZ8bdER1B1qWPkSk="; | ||||||
| src = fetchgit { | ||||||
| url = "https://repo.dec05eba.com/${pname}"; | ||||||
|
||||||
| 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.
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.
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
finalAttrsinstead ofrecforversionhere would lead to #310373. I don't think there is a consensus on the best solution, butrecworks fine here.