| 5 Jan 2024 |
Vladislav Vasilev | nativeBuildInputs, as I suppose, also | 15:27:27 |
Vladislav Vasilev | What is a vendor hash at all ? It's nix-hash for src + fetched content aka go modules ? | 15:28:15 |
@qbit:tapenet.org | vendorHash is the hash of all the dependent modules | 15:28:38 |
@qbit:tapenet.org | if you look in /nix/store you should see a *-neutrond-go-modules* | 15:29:03 |
@qbit:tapenet.org | at build that gets tied into the neutrond derivation as a vendor directory | 15:29:34 |
Vladislav Vasilev | Ye, I see this | 15:29:34 |
Vladislav Vasilev | So, its drv for deps | 15:29:50 |
@qbit:tapenet.org | your installPhase is probably blocking that from happening | 15:30:06 |
@qbit:tapenet.org | what happens when you remove your installPhase? | 15:30:13 |
Vladislav Vasilev | Now it fetching deps, I started it, one moment | 15:30:30 |
@qbit:tapenet.org | i'd probably switch to fetchFromGithub | 15:31:17 |
@qbit:tapenet.org | also version = shouldn't contain the v | 15:31:28 |
@qbit:tapenet.org | and you can use ${version} and other vars in the derivation in place of the hard-coded strings | 15:31:49 |
@qbit:tapenet.org | (you are using rec for that) | 15:31:54 |
Vladislav Vasilev | In reply to @qbit:tapenet.org i'd probably switch to fetchFromGithub It's like a good manner ? | 15:32:02 |
@qbit:tapenet.org | it's more common that fetch tarball - and i have seen tarballs change out (they are cached and get re-gen'd) | 15:32:43 |
Vladislav Vasilev | Okay, one moment | 15:33:09 |
@qbit:tapenet.org | take a look at other packages in the tree | 15:33:37 |
@qbit:tapenet.org | grep -r buildGoModule | 15:33:44 |
Vladislav Vasilev | I already tried, they have no any troubles with deps | 15:36:12 |
Vladislav Vasilev | I think they are exisiting here because some of deps are not listed in go.mod | 15:36:32 |
Vladislav Vasilev | So, they are imported directly | 15:36:46 |
@qbit:tapenet.org | then upstream needs to regen go.mod and whatnot | 15:36:59 |
@qbit:tapenet.org | what's the error? | 15:37:19 |
Vladislav Vasilev | shrinking RPATHs of ELF executables and libraries in /nix/store/zzkwzmabvdb6w36ia8acxvzl8aavcnl4-neutrond
shrinking /nix/store/zzkwzmabvdb6w36ia8acxvzl8aavcnl4-neutrond/bin/neutrond
checking for references to /build/ in /nix/store/zzkwzmabvdb6w36ia8acxvzl8aavcnl4-neutrond...
RPATH of binary /nix/store/zzkwzmabvdb6w36ia8acxvzl8aavcnl4-neutrond/bin/neutrond contains a forbidden reference to /build/
/nix/store/d4jf1cbbk494zwgbqz31pxgigpsbh6w2-stdenv-linux/setup: line 74: pop_var_context: head of shell_variables not a function context
/nix/store/d4jf1cbbk494zwgbqz31pxgigpsbh6w2-stdenv-linux/setup: line 1414: pop_var_context: head of shell_variables not a function context
/nix/store/d4jf1cbbk494zwgbqz31pxgigpsbh6w2-stdenv-linux/setup: line 1553: pop_var_context: head of shell_variables not a function context | 15:37:40 |
Vladislav Vasilev | Patchelf: here we go again | 15:37:53 |
Vladislav Vasilev | Someone hardcoded paths as I suppose | 15:38:08 |
@qbit:tapenet.org | so it's building fine | 15:38:24 |
@qbit:tapenet.org | so not a dep issue | 15:38:28 |
@qbit:tapenet.org | remove the nativeBuildInputs | 15:38:39 |