!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

854 Members
For people hacking on Nix: https://github.com/NixOS/nix Nix maintainers can be reached here.180 Servers

Load older messages


SenderMessageTime
11 Oct 2025
@Ericson2314:matrix.orgJohn Ericsonso it won't cause "that bad" of UB20:07:09
@Ericson2314:matrix.orgJohn Ericsonand we just saw the issue from the first commit20:07:15
@Ericson2314:matrix.orgJohn Ericsonso I am back to my "one bug, two symptoms" theory 20:07:31
@midischwarz12:libg.somidischwarz12 joined the room.20:27:33
@tavinator:matrix.orgtavinator

nix, or nixpkgs, does not really have a concept of multiple extant versions of a package. i see this worked around in cases of overwhelming importance with e.g. python312, python313 etc.

but in general if you need an older version of package XYZ you are dealing with a git history search and pinning to a commit

there is no fundamental reason why nixpkgs HEAD could not contain the logic for multiple versions of package XYZ

so - to start from the beginning - is there something in nix itself that keeps me from e.g. writing opentofu-1.6.3 or opentofu==1.6.3 or whatever as the package i want to install?

background: i want to introduce nix devshells in a company where this kind of situation happens all the time (i.e. some project has to be checked out from github and worked on using a list of software versions that is both brittle and not recent)

22:35:31
12 Oct 2025
@lovesegfault:matrix.orglovesegfault John Ericson, Sergei Zimmerman (xokdvium) why do we run functional tests against an old version of Nix? It's causing my new multiple-outputs cycle detection functional tests to fail under nix-daemon-compat-tests 00:05:50
@lovesegfault:matrix.orglovesegfaultShould I make the test agnostic to the old version or just not have it run when in compat tests?00:06:10
@midischwarz12:libg.somidischwarz12 removed their profile picture.02:45:01
@midischwarz12:libg.somidischwarz12 set a profile picture.02:45:11
@lovesegfault:matrix.orglovesegfault(i made the test agnostic)02:46:01
@midischwarz12:libg.somidischwarz12 Yea, you're not technically wrong that packages on the same version of nixpkgs could have different versions. But you'd have to have a package for every version of its dependencies as well. At which point, it is usually easier to dig through git or just override the package with a different version of source. That said, you'd have to do the same for its dependencies as well. But it's much easier to push this unto the user than force all of the nixpkgs maintainers to keep every package up to date. That said, I do agree that there should be an easier CLI interface to dig through nixpkgs and find necessary package versions or versions within requirements such as version ranges 03:26:54
@midischwarz12:libg.somidischwarz12So for some packages, yes, we do support multiple versions b/c we need to in the current version of nixpkgs (clang, python, gcc, glibc, etc). But for most packages, that is very unnecessary to maintain the current round of packages in nixpkgs03:28:01
@tavinator:matrix.orgtavinator

Thanks midischwarz12 I guess I am just looking for a framework to approach the problem. I would not have minded contributing the code to nixpkgs for packaging specific old versions of this or that. But it was pointed out to me that it would have an infeasible impact on Hydra -- a piece of the puzzle I wasn't seeing until now.

override the package with a different version of source.

Sounds like what I am looking for... this means using "overlays" then?

09:22:08
@0x9t:matrix.org0x9t joined the room.09:55:46
@Ericson2314:matrix.orgJohn Ericson @lovesegfault:matrix.org: we make tests require a new enough daemon version all the time 14:04:52
@Ericson2314:matrix.orgJohn EricsonIf you grep for DaemonVersion I think you'll see it14:05:28
@justinrestivo:matrix.orgjustinrestivo Hello! Any chance there's a spec about the different Fields provided for each ActivityType in the nix logger? Right now to answer this question I'm grepping the nix codebase for each ActivityType and looking at the arguments to the Activity::Activity constructor to infer the field types and number (if any exist). I'm wondering if there's an easier/more canonical way to do this. 15:30:35
@midischwarz12:libg.somidischwarz12You overlay when you want to stitch multiple overrides together or want the package that's available across your entire package set such as nixpkgs. What you're really desiring is just a single override and probably not overriding every package that consumes this package as a dependency. So an overlay would be unnecessary 16:39:36
@midischwarz12:libg.somidischwarz12* You overlay when you want to stitch multiple overrides together or want the override available across your entire package set such as nixpkgs. What you're really desiring is just a single override and probably not overriding every package that consumes this package as a dependency. So an overlay would be unnecessary 16:40:03
@midischwarz12:libg.somidischwarz12* You overlay when you want to stitch multiple overrides together or want the override available across your entire package set such as nixpkgs when used as a dependency. What you're really desiring is just a single override and probably not overriding every package that consumes this package as a dependency. So an overlay would be unnecessary 16:40:25
@midischwarz12:libg.somidischwarz12 I think overlays are often reached for a bit too early and people should take note more often that this ruins a lot of the reproducible nature of nix. Your nixpkgs will no longer be the same as everyone else's when you use an overlay 16:41:25
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Adding builds with ASAN/UBSAN to hydraJobs: https://github.com/NixOS/nix/pull/1422716:59:48
@midirhee12:tchncs.de@midirhee12:tchncs.de removed their profile picture.21:27:43
@midirhee12:tchncs.de@midirhee12:tchncs.de removed their display name midirhee12.21:28:17
@midirhee12:tchncs.de@midirhee12:tchncs.de left the room.21:28:28
13 Oct 2025
@tavinator:matrix.orgtavinatorok did you mean doing something like what's described on this page? https://nixos.org/guides/nix-pills/17-nixpkgs-overriding-packages.html10:27:48
@mrdev023:matrix.orgmrdev023Hi everyone, i want to know what's the recommendation to work on nixpkgs. Currently, i tried to open nixpkgs project on vscode and neovim. But it's very slow because nixpkgs have a lot of folders. Maybe open only the correct directory ?17:12:11
@k900:0upti.meK900Wrong room17:16:05
@k900:0upti.meK900 You want #Nixpkgs / NixOS contributions 17:16:14
@mrdev023:matrix.orgmrdev023thx17:16:40

Show newer messages


Back to Room ListRoom Version: 6