!LemuOOvbWqRXodtSsw:nixos.org

NixOS Reproducible Builds

457 Members
Report: https://reproducible.nixos.org Project progress: https://github.com/orgs/NixOS/projects/3099 Servers

Load older messages


SenderMessageTime
16 Oct 2024
@h7x4:nani.wtfh7x4 joined the room.11:31:34
18 Oct 2024
@sammy:cherrykitten.dev@sammy:cherrykitten.dev left the room.08:36:59
19 Oct 2024
@jwillikers:matrix.orgjwillikers joined the room.12:09:21
21 Oct 2024
@tolgaerok:matrix.org@tolgaerok:matrix.org left the room.04:35:43
@emilazy:matrix.orgemily do we make __DATE__ reproducible OOTB? 19:33:31
22 Oct 2024
@drupol:matrix.orgPolIt is by default09:07:09
@drupol:matrix.orgPol * It is by default (IIRC)09:07:22
@rnhmjoj:maxwell.ydns.eu@rnhmjoj:maxwell.ydns.eu left the room.12:40:01
23 Oct 2024
@noi0103:matrix.orgnoi0103 joined the room.13:53:13
24 Oct 2024
@jopejoe1:matrix.orgjopejoe1 set a profile picture.07:35:08
@wa94tiju:fau.deJulian Zboril set a profile picture.21:52:55
25 Oct 2024
@switch3flip:matrix.orggluonix joined the room.05:23:17
@switch3flip:matrix.orggluonixHi, trying to understand why building a flake in a docker container yields a different binary than when building with nix on host machine.05:24:33
@switch3flip:matrix.orggluonixhttps://discourse.nixos.org/t/building-flake-inside-docker-differs-from-outside/54899/305:37:02
@aniketd:matrix.org@aniketd:matrix.org left the room.06:21:41
26 Oct 2024
@switch3flip:matrix.orggluonix What variable controls the build directory when using nix build? 00:01:57
@artturin:matrix.orgArtturin
In reply to @switch3flip:matrix.org
What variable controls the build directory when using nix build?
https://nix.dev/manual/nix/2.24/language/derivations.html#builder-execution
00:42:05
@artturin:matrix.orgArtturinAnd source is unpacked to sourceRoot and then cd to it for the rest of the build https://github.com/NixOS/nixpkgs/blob/54830391487253422f0ccab55fc557b2e725ace0/pkgs/stdenv/generic/setup.sh#L171200:42:37
@artturin:matrix.orgArtturin* And src is unpacked to sourceRoot and then cd to it for the rest of the build https://github.com/NixOS/nixpkgs/blob/54830391487253422f0ccab55fc557b2e725ace0/pkgs/stdenv/generic/setup.sh#L171200:42:46
@switch3flip:matrix.orggluonixthanks00:43:07
@switch3flip:matrix.orggluonix I am trying to figure out how to obtain the same bit-for-bit builds inside a docker container, compared to outside, just with nix build 00:43:55
@switch3flip:matrix.orggluonix from running diffoscope, one thing that stands out is the different build paths 00:44:30
@switch3flip:matrix.orggluonix

For instance, without docker:

/build/cargo-vendor-dir/...`

versus, with docker:

/tmp/nix-build-teleport.drv-0/cargo-vendor-dir/...
00:46:27
@switch3flip:matrix.orggluonix *

For instance, without docker:

/build/cargo-vendor-dir/...

versus, with docker:

/tmp/nix-build-teleport.drv-0/cargo-vendor-dir/...
00:46:40
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nix/blob/3db75b00602a7a937c1e983e01c071100102c18c/src/libstore/unix/build/local-derivation-goal.cc#L116700:48:07
@artturin:matrix.orgArtturinDefinition is a few lines up00:48:25
@artturin:matrix.orgArtturinYou can enable sandboxing https://hub.docker.com/r/nixos/nix shows how00:49:33
@switch3flip:matrix.orggluonixyes, ok, I was reading about this00:49:51
@switch3flip:matrix.orggluonixThis applies to the docker-nixpkgs images as well right? I am using nix flakes so the image nix-flakes or cachix-flakes is convenient.00:50:34
@artturin:matrix.orgArtturin
In reply to @switch3flip:matrix.org
This applies to the docker-nixpkgs images as well right? I am using nix flakes so the image nix-flakes or cachix-flakes is convenient.
Should work in any docker with nix
00:51:06

Show newer messages


Back to Room ListRoom Version: 6