!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

850 Members
173 Servers

Load older messages


SenderMessageTime
5 Aug 2025
@xoartox:envs.net@xoartox:envs.net left the room.09:21:47
@isabel:isabelroses.comisabel changed their profile picture.09:49:44
6 Aug 2025
@cleverca22:matrix.orgcleverca22 ive been fighting a weird bug all day, nix build github:grumpycoders/pcsx-redux fails to build on most machines i have
if i clone the repo and alter any file, it suddenly works
and while attempting to debug it, it suddenly started working on my desktop, but still fails on the laptop
02:34:06
@cleverca22:matrix.orgcleverca22 the best ive been able to narrow it down to, is that sometimes, nix will include a empty third_party/imgui in the $src
and that then breaks the postUnpack hook, and screws up the entire build
02:34:49
@cleverca22:matrix.orgcleverca22but nix is being very eratic about when it does and doesnt include that empty directory02:35:03
@cleverca22:matrix.orgcleverca22

on one machine where it breaks, i get:

$ nix flake info github:grumpycoders/pcsx-redux
warning: 'nix flake info' is a deprecated alias for 'nix flake metadata'
warning: ignoring the client-specified setting 'netrc-file', because it is a restricted setting and you are not a trusted user
Resolved URL:  github:grumpycoders/pcsx-redux
Locked URL:    github:grumpycoders/pcsx-redux/1b0cbe5e4a535def2e3e3279551e6665cdc102ae?narHash=sha256-W3/sZlI418gsHUmRR%2BBjdfX7t64FSlnqqXeX2bMkk5Y%3D
Description:   PlayStation 1 emulator and debugger
Path:          /nix/store/9390g9s13a3g5g9bdjigiwzqwnqzhg9z-source
Revision:      1b0cbe5e4a535def2e3e3279551e6665cdc102ae
Last modified: 2025-08-05 04:14:09
Fingerprint:   91f3ea382c280dd77235708bb70b037675c989efae867e9f02532390d2fa4ad8
Inputs:
├───nix-github-actions: github:nix-community/nix-github-actions/f4158fa080ef4503c8f4c820967d946c2af31ec9?narHash=sha256-F1G5ifvqTpJq7fdkT34e/Jy9VCyzd5XfJ9TO8fHhJWE%3D (2025-01-21 00:44:53)
│   └───nixpkgs follows input 'nixpkgs'
└───nixpkgs: github:nixos/nixpkgs/f675531bc7e6657c10a18b565cfebd8aa9e24c14?narHash=sha256-gbl9hE39nQRpZaLjhWKmEu5ejtQsgI5TWYrIVVJn30U%3D (2025-04-09 21:06:01)

but on the machine where it works, i get:

$ nix flake info github:grumpycoders/pcsx-redux
warning: 'nix flake info' is a deprecated alias for 'nix flake metadata'
Resolved URL:  github:grumpycoders/pcsx-redux
Locked URL:    github:grumpycoders/pcsx-redux/1b0cbe5e4a535def2e3e3279551e6665cdc102ae?narHash=sha256-TJTaSRKwAYYwSA3voWLtKcpB%2BT6Wt9dI9QKgOorsPYY%3D
Description:   PlayStation 1 emulator and debugger
Path:          /nix/store/3vbn1ah1nfkgqapfvj0akj34qdg77phb-source
Revision:      1b0cbe5e4a535def2e3e3279551e6665cdc102ae
Last modified: 2025-08-05 04:14:09
Fingerprint:   91f3ea382c280dd77235708bb70b037675c989efae867e9f02532390d2fa4ad8
Inputs:
├───nix-github-actions: github:nix-community/nix-github-actions/f4158fa080ef4503c8f4c820967d946c2af31ec9?narHash=sha256-F1G5ifvqTpJq7fdkT34e/Jy9VCyzd5XfJ9TO8fHhJWE%3D (2025-01-21 00:44:53)
│   └───nixpkgs follows input 'nixpkgs'
└───nixpkgs: github:nixos/nixpkgs/f675531bc7e6657c10a18b565cfebd8aa9e24c14?narHash=sha256-gbl9hE39nQRpZaLjhWKmEu5ejtQsgI5TWYrIVVJn30U%3D (2025-04-09 21:06:01)
02:59:29
@cleverca22:matrix.orgcleverca22 i can see that the narhash and Path: have changed, yet they are the same git revision 02:59:48
@cleverca22:matrix.orgcleverca22 infact, if i just rm -rf ~/.cache/nix/ i can get the above command to produce a different narhash&path! 03:06:38
@dramforever:matrix.orgdramforeveromg i think i get it03:55:06
@dramforever:matrix.orgdramforevernix assumed that the tarball generated from a git hash is reproducible03:55:29
@dramforever:matrix.orgdramforeverhowever it's not, if you generate a tarball from git+file submodules become nothing, if you grab a tarball from github submodules become empty directories03:55:54
@cleverca22:matrix.orgcleverca22 but its more crazy then that
if you clone the repo, and nix build .# it fails
if you edit any file, even a comment, it works
if you check out anything that isnt HEAD it works
if you try to bisect, every commit works except HEAD
04:01:43
@dramforever:matrix.orgdramforevertry grabbing commits other than HEAD from github04:02:11
@dramforever:matrix.orgdramforeverthey share the same cache afaict04:02:20
@cleverca22:matrix.orgcleverca22 nix build github:grumpycoders/pcsx-redux/1b0cbe5e4a535def2e3e3279551e6665cdc102ae will sometimes work and sometimes fail 04:02:38
@cleverca22:matrix.orgcleverca22depends on what the fetch cache happens to contain04:02:47
@cleverca22:matrix.orgcleverca22ive yet to find a reliable way to trigger both cases04:03:01
@dramforever:matrix.orgdramforeverso according to my theory, all starting from empty fetch cache04:03:09
@dramforever:matrix.orgdramforeverif you get it from github first, it breaks04:03:19
@dramforever:matrix.orgdramforeverif you get it from git+file first it works04:03:26
@cleverca22:matrix.orgcleverca22your right!04:03:55
@cleverca22:matrix.orgcleverca22the secondary problem, is that the bash script within the repo, isnt liking this04:06:30
@cleverca22:matrix.orgcleverca22 cp -ru --no-preserve=all /nix/store/wpk39xy9ybc888cihcf6kiwswnvj1yp5-source source/third_party/imgui 04:06:55
@dramforever:matrix.orgdramforever just don't use github: for this for now is what i would say 04:07:03
@dramforever:matrix.orgdramforeveras a workaround04:07:10
@cleverca22:matrix.orgcleverca22 if you first fetched via github, source/third_party/imgui will exist
so it then copies the source to source/third_party/imgui/wpk39xy9ybc888cihcf6kiwswnvj1yp5-source
04:07:18
@cleverca22:matrix.orgcleverca22 but if you first fetched via a git clone, it wont exist, so it renames as it copies to source/third_party/imgui 04:07:37
@cleverca22:matrix.orgcleverca22then everything falls apart, because the submodules are at the wrong place04:08:20
@cleverca22:matrix.orgcleverca22 nix build https://github.com/grumpycoders/pcsx-redux/archive/1b0cbe5e4a535def2e3e3279551e6665cdc102ae.tar.gz seems to work, and it will likely work as a flake input as well... 04:09:44
@cleverca22:matrix.orgcleverca22ah wait nope04:09:50

Show newer messages


Back to Room ListRoom Version: 6