!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

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

You have reached the beginning of time (for this room).


SenderMessageTime
27 Oct 2025
@backtail:matrix.orgbacktail

Hey peeps, I unknowingly ran into the leaveDotGit bug of unpredictable hash generation for nix derivations. I patched the dependency, but now ofborg says that my provided hash is wrong:
´´´bash
error: hash mismatch in fixed-output derivation '/nix/store/q59g9bk2kwh20sr8ir00gz5d5yjkb75r-source.drv':
specified: sha256-HoqFBkxXlmbWaFPOVvO0zUhlDBVzz++T6Fgf0MAuyao=
got: sha256-rcIbtIXTm1sNMCbs6W5DS/9KeMkWWhUdwReW++nW2Qc=
error: 1 dependencies of derivation '/nix/store/q5izjyv5iv1h0zdc06my4dp07wvv9j76-KnobKraft-orm-2.7.1.drv' failed to build
´´´

The point that I don't understand is that every architecture, aarch64, x64_86, etc. all have different hashes. However, I just want to build it for x64_86_linux. So how do I tell ofborg to only build on one architecture and why does the hash that works locally not work with ofborg?

20:33:55
@backtail:matrix.orgbacktail *

Hey peeps, I unknowingly ran into the leaveDotGit bug of unpredictable hash generation for nix derivations. I patched the dependency, but now ofborg says that my provided hash is wrong:

´´´
error: hash mismatch in fixed-output derivation '/nix/store/q59g9bk2kwh20sr8ir00gz5d5yjkb75r-source.drv':
specified: sha256-HoqFBkxXlmbWaFPOVvO0zUhlDBVzz++T6Fgf0MAuyao=
got: sha256-rcIbtIXTm1sNMCbs6W5DS/9KeMkWWhUdwReW++nW2Qc=
error: 1 dependencies of derivation '/nix/store/q5izjyv5iv1h0zdc06my4dp07wvv9j76-KnobKraft-orm-2.7.1.drv' failed to build
´´´

The point that I don't understand is that every architecture, aarch64, x64_86, etc. all have different hashes. However, I just want to build it for x64_86_linux. So how do I tell ofborg to only build on one architecture and why does the hash that works locally not work with ofborg?

20:35:08
@backtail:matrix.orgbacktail *

Hey peeps, I unknowingly ran into the leaveDotGit bug of unpredictable hash generation for nix derivations. I patched the dependency, but now ofborg says that my provided hash is wrong:

error: hash mismatch in fixed-output derivation '/nix/store/q59g9bk2kwh20sr8ir00gz5d5yjkb75r-source.drv':
specified: sha256-HoqFBkxXlmbWaFPOVvO0zUhlDBVzz++T6Fgf0MAuyao=
got:    sha256-rcIbtIXTm1sNMCbs6W5DS/9KeMkWWhUdwReW++nW2Qc=
error: 1 dependencies of derivation '/nix/store/q5izjyv5iv1h0zdc06my4dp07wvv9j76-KnobKraft-orm-2.7.1.drv' failed to build

The point that I don't understand is that every architecture, aarch64, x64_86, etc. all have different hashes. However, I just want to build it for x64_86_linux. So how do I tell ofborg to only build on one architecture and why does the hash that works locally not work with ofborg?

20:37:20
@backtail:matrix.orgbacktailWell... now that I got another review, suddenly ofborg gives me output that it did successfully built the package for linux (aarch64 and x64_86) but failed for darwin. I am honestly confused as to how to interpret ofborg output. I would appreciate a quick explanation!21:16:19
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)More of a nixpkgs question generally: https://matrix.to/#/#users:nixos.org. But this might have to do with case sensitivity and whatnot23:44:15
28 Oct 2025
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) Eelco: 00:29:23
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) * Eelco: as discussed during the meeeting, here's the constant-memory uploads to http binary caches: https://github.com/NixOS/nix/pull/14390 00:29:54
@backtail:matrix.orgbacktail
In reply to @xokdvium:matrix.org
More of a nixpkgs question generally: https://matrix.to/#/#users:nixos.org. But this might have to do with case sensitivity and whatnot
Thanks for the pointer!
01:39:08
@backtail:matrix.orgbacktail left the room.01:43:26
@fzakaria:one.ems.hostfzakariaany good issues I can work on?01:58:23
@fzakaria:one.ems.hostfzakariaI finished that NAR thing.01:58:26
@tomberek:matrix.orgtomberek @fzakaria:one.ems.host: perhaps a more long term solution to:https://github.com/GrahamDennis/nix/pull/8. We got team approval for "final" to be exposed so that locked fetches don't force a refetch if it already exists. 02:10:55

Show newer messages


Back to Room ListRoom Version: 6