lopsided98 has quit [Read error: Connection reset by peer]
lopsided98 has joined #nixos-dev
<Mic92>
The linux kernel expression could be more readable.
pie___ has joined #nixos-dev
orivej has joined #nixos-dev
pie___ is now known as pie_
FRidh has joined #nixos-dev
<FRidh>
Certain packages (e.g. xz) can only be build in a sandbox when bash is added to the sandbox paths as is done by NixOS. Typically one does not encounter this issue when using /nix/store as store location because binary substitutes are used, but when building from source this requirement pops up. Is there interest in reducing this implicit dependency on bash?
<gchristensen>
seems good to me ...
<FRidh>
@gchristensen does the darwin installer add bash to sandbox-paths as well?
<gchristensen>
I don't think so
infinisil has quit [Quit: Configuring ZNC, sorry for the join/quits!]
FRidh has quit [Remote host closed the connection]
infinisil has joined #nixos-dev
infinisil has quit [Client Quit]
infinisil has joined #nixos-dev
Sonarpulse has joined #nixos-dev
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-dev
yegortimoshenko has quit [Remote host closed the connection]
yegortimoshenko has joined #nixos-dev
jtojnar has quit [Read error: Connection reset by peer]
<Profpatsch>
Does somebody know what the “env” field in struct Derivation stores?
<contrapumpkin>
the environment for the builder unless I'm misunderstanding your question
<Profpatsch>
There is no documentation about the internal representation of derivations at all (as far as I can see), so before I reverse-engineer this stuff …
<Profpatsch>
contrapumpkin: You mean exactly what lands inside the POSIX env inside the builder?
<contrapumpkin>
yup
<Profpatsch>
StringPairs env;
<Profpatsch>
inside BasicDerivation in derivations.hh
<Profpatsch>
A simple description of each field would go a long way ;)
<gchristensen>
sounds like a simple PR to send :)
<Profpatsch>
Maybe there is some and my checkout is simply too old.
<Profpatsch>
Lets seeh
FRidh has joined #nixos-dev
<Profpatsch>
My checkout is from Jun ’16 oO
<contrapumpkin>
lol
jtojnar has joined #nixos-dev
<Profpatsch>
Yeah, stuff has changed but the fields don’t have docstrings, still.
<Profpatsch>
I like
<Profpatsch>
PathSet inputSrcs; /* inputs that are sources */
ma27 has joined #nixos-dev
ma27 has quit [Client Quit]
<Profpatsch>
Hm, what is the Derivation/BasicDerivation separation used for in 1.11?
<Profpatsch>
As far as I can see there are no functions that return a BasicDerivation
<clever>
Profpatsch: are there multiple things that extend it?
<Profpatsch>
nope
<Profpatsch>
Maybe it’s used in 1.12, let’s see.
<Profpatsch>
Hm, doesn’t look like it’s different on master
<niksnut>
it's used by the remote build protocol
<niksnut>
LocalStore::buildDerivation() takes a BasicDerivation
<Profpatsch>
You mean because Derivation also contains its sub-drvs, which might me built somewhere else?
vcunat has joined #nixos-dev
<niksnut>
it's to prevent having to send the closure of a .drv file (which could be very large)
<niksnut>
to build a derivation, you only need its immediate input sources, not those of dependencies