8

I've got a local unstable package and I want it to always be at the latest commit from its source's upstream. For that I added passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; }; in the package, but when I build the package/install it, it doesn't update.

I don't wanna have to manually update the source's rev and hash, maybe I'm just not using it right ?

This is the package: https://codeberg.org/claymorwan/dotfiles/src/commit/9ca46a651a16a5dc85f35d3c0d19bcd03d692fdd/NixOS/pkgs/fluxer/default.nix

And this is how I install it in my config: https://codeberg.org/claymorwan/dotfiles/src/commit/9ca46a651a16a5dc85f35d3c0d19bcd03d692fdd/NixOS/modules/home/Packages/default.nix#L41

you are viewing a single comment's thread
view the rest of the comments
[-] claymorwan@lemmy.blahaj.zone 1 points 5 months ago

Well that does works, idk if it's the best way to do so tho, I did reuse ur timestamp function tho thanks

this post was submitted on 20 Mar 2026
8 points (100.0% liked)

Nix / NixOS

2860 readers
9 users here now

Main links

Videos

founded 3 years ago
MODERATORS