!lZLfSUtSOVjwYTmPbU:nixos.org

nixpkgs-update

223 Members
Keeping nixpkgs up to date. r-ryantm bot. https://github.com/ryantm/nixpkgs-update and https://github.com/nix-community/infra/blob/master/build02/nixpkgs-update.nix64 Servers

Load older messages


SenderMessageTime
19 May 2026
@makuru:catgirl.cloudMakuru joined the room.00:01:02
22 May 2026
@jonhermansen:matrix.orgjonhermansen changed their display name from jonhermansen to Jon Hermansen.19:18:45
23 May 2026
@mtmn:matrix.orgmtmn joined the room.15:23:16
24 May 2026
@nephesh:matrix.orgnephesh joined the room.00:19:05
@nephesh:matrix.orgnephesh set a profile picture.04:33:34
26 May 2026
@phanirithvij:matrix.orgloudgolem changed their display name from loudgolem to phanirithvij.11:41:28
2 Jun 2026
@bdd:mozilla.orgbdd left the room.16:10:49
7 Jun 2026
@likiusinik:matrix.orgLikius Inik joined the room.05:20:06
@lnk3:matrix.orglnk3 joined the room.10:11:53
@lnk3:matrix.orglnk3 changed their display name from Luca Ruperto to lnk3.10:12:20
@lnk3:matrix.orglnk3

Is passthru.updateScript = nix-update-script {}; redundant?

I was adding it to obs-cmd some time ago to bump it to 1.0.0, but now I noticed the package updated without it:

$ git log -1 -- pkgs/by-name/ob/obs-cmd/package.nix
commit 780c676b733629966efeb4bbaf5a5d88d5b3d23d
Author: R. RyanTM <ryantm-bot@ryantm.com>
Date:   Mon Apr 13 19:26:51 2026 +0000

    obs-cmd: 0.31.3 -> 1.0.0

The bot did the update, but the package doesn't explicit the script:

$ git diff --staged
diff --git a/pkgs/by-name/ob/obs-cmd/package.nix b/pkgs/by-name/ob/obs-cmd/package.nix
index 9e11f3d97c1d..c9b916e2ac93 100644
--- a/pkgs/by-name/ob/obs-cmd/package.nix
+++ b/pkgs/by-name/ob/obs-cmd/package.nix
@@ -2,6 +2,7 @@
+  nix-update-script,
 }:

+  passthru.updateScript = nix-update-script {};
+

By reading the docs it seems that there is a "chain" it follows:

It uses package repository information from Repology.org (though that requires other projects to detect the update), the GitHub releases API, and, if available, the package passthru.updateScript

I remember when I added the change I ran nix-update -A obs-cmd and it updated successfully, even if the bot logs didn't yet pick up the new version.

So maybe it is useful to add it (?)

10:15:44
@khaneliman:matrix.orgAustin HorstmanIIRC it was necessary to get around a local maintainer update script logic so that you can use an in repo script to update a plugin by name or a set of plugins for a maintainer18:42:28
@khaneliman:matrix.orgAustin Horstman ie num = "nix-shell maintainers/scripts/update.nix --argstr maintainer $1"; 18:43:37
@khaneliman:matrix.orgAustin Horstman maybe related to get-script ? pkg: pkg.updateScript or null, 18:44:54
9 Jun 2026
@coolcuber:matrix.orgcoolcuber set a profile picture.19:10:53
10 Jun 2026
@lnk3:matrix.orglnk3

Let's see if I understand what you are saying: passthru.updateScript is needed for maintainers to have a place to write scripts for their packages update.
Each maintainer can run a command passing its name and the get-script function will run for each of the maintainers modules and run the script if present.

So regarding my question I can therefore assume that the bot doesn't really care about the presence of the updateScript. It has scripts of its own to update packages generically.
If an updateScript it's not strictly required I won't add it since the bot should be able to update it on its own. I can maybe open a PR if I want to speed up a package update since the bot may have a long queue before reaching the package.

Also if I specify passthru.updateScript for packages that "aren't mine" then the maintainer will have them in their nix-shell maintainers/scripts/update.nix --argstr maintainer NOTME output when they didn't before and they might not be pleased.

Am I wrong?

13:13:00
@lnk3:matrix.orglnk3

Yep just tried it. Adding updateScript may not be enjoyed by the actual maintainer if they use the script

$ grep updateScript pkgs/by-name/ob/obs-cmd/package.nix; nix-shell maintainers/scripts/update.nix --argstr maintainer ramblurr

Going to be running update for following packages:
 - davis-5.4.2
 - gost-3.2.6
 - hacompanion-1.0.30
 - microsocks-1.0.5
 - ocis_5-bin-5.0.9
 - roon-server-2.67.1661

Press Enter key to continue...^C

obs-cmd not present above. Now I add the updateScript part and it will be present:

$ grep update pkgs/by-name/ob/obs-cmd/package.nix; nix-shell maintainers/scripts/update.nix --argstr maintainer ramblurr
  passthru.updateScript = nix-update-script {};
  nix-update-script,
  passthru.updateScript = nix-update-script {};

Going to be running update for following packages:
 - davis-5.4.2
 - gost-3.2.6
 - hacompanion-1.0.30
 - microsocks-1.0.5
 - obs-cmd-1.0.0
 - ocis_5-bin-5.0.9
 - roon-server-2.67.1661

Press Enter key to continue...^C
13:19:30
19 Sep 2023
@evils:nixos.devevils joined the room.16:15:20
@ryantm:matrix.orgryantm raitobezarius: No, not really. It's been an idea for a long time to have grouped package updates like that, but it hasn't been implemented. 16:52:21
@evils:nixos.devevilshi, second link in the channel topic is dead19:21:58
@evils:nixos.devevilsis there a way to see what packages the bot tried to update but failed on?19:22:23
@artturin:matrix.orgArtturin
In reply to @evils:nixos.dev
is there a way to see what packages the bot tried to update but failed on?
https://r.ryantm.com/log/
19:23:49
@artturin:matrix.orgArtturinhttps://ryantm.github.io/nixpkgs-update/nixpkgs-maintainer-faq/#nixpkgs-maintainer-faq19:23:56
@artturin:matrix.orgArtturin * from https://ryantm.github.io/nixpkgs-update/nixpkgs-maintainer-faq/#nixpkgs-maintainer-faq19:23:58
@evils:nixos.devevilsimage.png
Download image.png
19:24:43
@evils:nixos.devevilsoof that's a subtle link underline19:24:50
@evils:nixos.devevils(i was looking at the page :)19:25:02
@artturin:matrix.orgArtturinyeah19:26:15
@evils:nixos.devevilsok, why do all KiCad update attempts end in "Do not update GNOME during a release cycle"?19:30:21
@ryantm:matrix.orgryantm
19:44:27

Show newer messages


Back to Room ListRoom Version: 9