!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

869 Members
180 Servers

Load older messages


SenderMessageTime
3 Jan 2025
@elikoga:matrix.orgelikoga changed their display name from elikoga (@38c3 📞488{0,1,9}) to elikoga.10:28:16
@bryan.bennett:matrix.orgBryan

...I did not see this reply at all last month.

I'll be coming back to this problem soon. I think we just got around it with import, but I would have to go back and check.'

18:12:20
@bryan.bennett:matrix.orgBryan *

...I did not see this reply at all last month.

I'll be coming back to this problem soon. I think we just got around it with import, but I would have to go back and check.

18:12:23
5 Jan 2025
@5sqrgsrdwk:matrix.org5sqrgsrdwk joined the room.11:52:43
@5sqrgsrdwk:matrix.org5sqrgsrdwkHey, y'all! I'm trying to allow internet access from a flake build. Specifically from pnpm, but I keep getting "UNABLE_TO_GET_ISSUER_CERT_LOCALLY" and "failed, reason: unable to get local issuer certificate". All of the documentation I can find recommends "__noChroot = true," and I've tried " __impure = true;" in the derivation, too. As it stands, my nix.conf has "experimental-features = nix-command flakes impure-derivations ca-derivations," and I've tried "nix build ... --impure" and "--option sandbox relaxed" and "--option sandbox false." If it matters, I'm on an M2 Mac. Let me know if I should move this somewhere else. Does anyone have any ideas?12:18:44
@elikoga:matrix.orgelikoga

If you really really desperately want to access the internet in your derivation builders, try https://phip1611.de/blog/accessing-network-from-a-nix-derivation/

Consider using buildNpmPackage, from nixpkgs

For solving the issue you're seeing immediately right now, consider the answer to https://discourse.nixos.org/t/openssl-and-node-gyp-errors-when-using-a-docker-image-built-by-nix-build-with-a-flake/30847/ with npm config set cafile

13:24:37
@elikoga:matrix.orgelikoga Also no relation to flakes as far as I can see? 13:27:42
@elikoga:matrix.orgelikoga Since you're saying "in a flake build" I am assuming that you are triggering a build via nix build. So consider using --impure (only if you want impure builds) 13:29:39
@elikoga:matrix.orgelikoga * Since you're saying "in a flake build" I am assuming that you are triggering a build via nix build. So consider using --impure (only if you want impure builds) You already tried this 13:30:05
6 Jan 2025
@5sqrgsrdwk:matrix.org5sqrgsrdwkThank you!!!00:13:26
@5sqrgsrdwk:matrix.org5sqrgsrdwkAdding pkgs.cacert to buildInputs got me unstuck. Thanks again!00:40:51
@phaitonican:matrix.org@phaitonican:matrix.orgRedacted or Malformed Event21:08:21
@phaitonican:matrix.org@phaitonican:matrix.orgRedacted or Malformed Event21:08:58
7 Jan 2025
@sss:matrix.dark-alexandr.netsss 09:05:11
@sss:matrix.dark-alexandr.netsss changed their profile picture.09:06:24
9 Jan 2025
@vhdirk:matrix.orgDirk Van Haerenborgh joined the room.17:08:40
10 Jan 2025
@eldritchcookie:matrix.orgeldritchcookie joined the room.11:30:46
11 Jan 2025
@pandapip1:matrix.orgpandapip1 joined the room.21:20:52
12 Jan 2025
@strutztm:strutztm.de@strutztm:strutztm.de joined the room.00:21:30
@phaitonican:matrix.org@phaitonican:matrix.orgHello guys. I have a binary output from a Rust project built with "cargo build --release". The name of the binary file is "cosmic-comp". How would I install this prebuilt binary with a flake onto my system? Thanks a lot01:21:10
@elikoga:matrix.orgelikoga I don't see how this is closely related to flakes? This is asking "how do i package a rust package with nix" right? 01:22:09
@phaitonican:matrix.org@phaitonican:matrix.orgyes exactly. Sorry I am not sure what this would be related with01:23:06
@elikoga:matrix.orgelikogaThis should get you pretty far: https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/rust.section.md01:23:39
@phaitonican:matrix.org@phaitonican:matrix.orgthank you very much01:23:57
@elikoga:matrix.orgelikoga I think #rust:nixos.org is more closely related to any issues you might encounter 01:24:56
@phaitonican:matrix.org@phaitonican:matrix.orgYes but the thing is it is already prebuild. so its a binary01:25:20
@phaitonican:matrix.org@phaitonican:matrix.orgso it has nothing really to do with rust anymore01:25:26
@phaitonican:matrix.org@phaitonican:matrix.orgJust packaging a prebuilt binary inside a flake you know01:25:45
@elikoga:matrix.orgelikogahttps://wiki.nixos.org/wiki/Packaging/Binaries01:25:59
@phaitonican:matrix.org@phaitonican:matrix.orgthank you a lot01:26:15

Show newer messages


Back to Room ListRoom Version: 6