gchristensen changed the topic of #nixos-dev to: NixOS Development (#nixos for questions) | https://hydra.nixos.org/jobset/nixos/trunk-combined https://channels.nix.gsc.io/graph.html | 18.03 release managers: fpletz and vcunat
xeji has quit [Quit: WeeChat 2.0]
mbrgm has quit [Ping timeout: 268 seconds]
mbrgm has joined #nixos-dev
mbrgm has quit [Ping timeout: 264 seconds]
mbrgm has joined #nixos-dev
orivej has quit [Ping timeout: 240 seconds]
ckauhaus has joined #nixos-dev
ckauhaus has quit [Ping timeout: 256 seconds]
pie_ has quit [Ping timeout: 265 seconds]
ckauhaus has joined #nixos-dev
ckauhaus has quit [Ping timeout: 256 seconds]
ma27 has joined #nixos-dev
ckauhaus has joined #nixos-dev
ckauhaus has quit [Remote host closed the connection]
ckauhaus has joined #nixos-dev
ckauhaus has quit [Remote host closed the connection]
ckauhaus has joined #nixos-dev
ckauhaus has quit [Ping timeout: 255 seconds]
ckauhaus has joined #nixos-dev
ckauhaus has quit [Ping timeout: 276 seconds]
ckauhaus has joined #nixos-dev
ckauhaus has quit [Ping timeout: 276 seconds]
ma27 has quit [Ping timeout: 276 seconds]
ckauhaus has joined #nixos-dev
ckauhaus_ has joined #nixos-dev
ckauhaus has quit [Ping timeout: 264 seconds]
MichaelRaskin has quit [Quit: MichaelRaskin]
ckauhaus has joined #nixos-dev
ckauhaus_ has quit [Ping timeout: 240 seconds]
ckauhaus_ has joined #nixos-dev
ckauhaus has quit [Ping timeout: 265 seconds]
ckauhaus_ has quit [Ping timeout: 268 seconds]
ma27 has joined #nixos-dev
orivej has joined #nixos-dev
orivej has quit [Ping timeout: 255 seconds]
<xCuri0> How do I port NixOS to a new architecture ?
<xCuri0> there aren't any wiki pages about it
<clever> xCuri0: to start with, do you want it to only be cross-compiled, or do you plan to have it be able to run nix?
orivej has joined #nixos-dev
ckauhaus has joined #nixos-dev
ckauhaus has quit [Remote host closed the connection]
goibhniu has joined #nixos-dev
pie_ has joined #nixos-dev
ckauhaus has joined #nixos-dev
ckauhaus has quit [Remote host closed the connection]
ckauhaus has joined #nixos-dev
<LnL> is there a way to hash a string using just the nix cli?
<LnL> builtins.hashString doesn't like zero bytes :/
<tilpner> LnL - nix-hash --type sha256 /proc/self/fd/0 <<<foo
<tilpner> :/
zybell_ has quit [Ping timeout: 265 seconds]
<LnL> that hash isn't correct
<LnL> and I need it to be unix compatible
<tilpner> nix-hash --flat <(echo foo)
<LnL> (trying to avoid the whole sha25sum vs shasum -a 256)
orivej has quit [Ping timeout: 265 seconds]
<LnL> oh, only tried without --flat
<LnL> that works!
<tilpner> Doesn't work with sh, but maybe you can afford bash
<LnL> yeah, but that's fine
<clever> without --flat, it will wrap the file in a NAR, then hash
zybell_ has joined #nixos-dev
orivej has joined #nixos-dev
goibhniu has quit [Ping timeout: 256 seconds]
<LnL> that explains the error, I think it tries to read the file twice
ckauhaus has quit [Remote host closed the connection]
ckauhaus has joined #nixos-dev
<Profpatsch> > cat hi.nix
<Profpatsch> 4
<Profpatsch> > nix eval --json --show-trace ./hi.nix
<Profpatsch> error: path '/home/philip/tmp/hi.nix' is not in the Nix store
<Profpatsch> wow
<Profpatsch> > nix eval --json --show-trace -f ./hi.nix
<Profpatsch> error: more arguments are required
<Profpatsch> wow
<Profpatsch> > nix eval '4'
<Profpatsch> error: don't know what to do with argument '4'
<Profpatsch> wow
<Profpatsch> > nix eval '(4)'
<Profpatsch> 4
<Profpatsch> wow
<LnL> lol
<Profpatsch> I think I’ll stick with nix-instantiate for now or something.
<gchristensen> the `nix` command is unstable ...:) probably open a bug for that, Profpatsch?
<Profpatsch> gchristensen: One or four?
<gchristensen> one I'd say, because the issue I think is that the four are not equiv
<LnL> it takes installables, not a file
ckauhaus has quit [Ping timeout: 260 seconds]
<LnL> the '4' is weird tho
<gchristensen> what if `./4` is a file containing '(4)'b and you try nix eval '4'
<gchristensen> what if `./4` is a file containing '(4)' and you try nix eval '4'
<LnL> -_-
<Profpatsch> LnL: What’s an installable?
<LnL> don't think that's described anywhere
<Profpatsch> What does -f mean with “more arguments are required”?
<srhb> I think you basically have to specify an attribute.
<srhb> Even if there is none to specify.
<Profpatsch> And: can I just evaluate a files
<LnL> yeah
<Profpatsch> *file?
<srhb> No.
<Profpatsch> wow
<LnL> seems like it, even tho nix build can
<Profpatsch> But: > nix eval -f ./hi.nix ""
<Profpatsch> 4
<Profpatsch> butt
<srhb> Huh, I didn't know that was possible.
<LnL> heh
<Profpatsch> Of course. d)
<Profpatsch> At least it’s consistent. :P
ckauhaus has joined #nixos-dev
ckauhaus has quit [Ping timeout: 276 seconds]
jtojnar has quit [Remote host closed the connection]
ckauhaus has joined #nixos-dev
ckauhaus has quit [Client Quit]
<gchristensen> nixos.org's option page hasn't updated for nixos 18.03
<gchristensen> proof: https://nixos.org/nixos/options.html#networking.interfaces.%3Cname%3F%3E.ip4 vs. warning: The option `ip4' defined in `/home/grahamc/projects/personal/network.nix' has been renamed to `ipv4.addresses'.
<zybell_> nixpkgs manual lists 16.03 as current!
<LnL> default is 17.09
<gchristensen> zybell_: where?
<zybell_> in the beginning first or second paragraph
<gchristensen> I see it mention 16.03 but not say it is current
<zybell_> dont remember the exact wording but got the impression it was meant.
<gchristensen> it'd probably be good, yeah, to have it always be current
xeji has joined #nixos-dev
Synthetica has joined #nixos-dev
pie__ has joined #nixos-dev
pie_ has quit [Ping timeout: 260 seconds]
<taktoa> tfw you have so many packages in your global `ghcWithPackages` that it won't build because the argument list to bash is too long
<LnL> global?
jtojnar has joined #nixos-dev
kmicklas has joined #nixos-dev
xeji has quit [Quit: WeeChat 2.0]
Cale has quit [Read error: Connection reset by peer]
Cale has joined #nixos-dev
Cale has quit [Ping timeout: 276 seconds]
jtojnar has quit [Quit: jtojnar]
Cale has joined #nixos-dev
Cale has quit [Read error: Connection reset by peer]
Cale has joined #nixos-dev
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos-dev
Cale has quit [Ping timeout: 276 seconds]
jtojnar has joined #nixos-dev
Synthetica has quit [Quit: Connection closed for inactivity]
Cale has joined #nixos-dev
jtojnar_ has joined #nixos-dev
jtojnar has quit [Ping timeout: 260 seconds]
jtojnar_ is now known as jtojnar
<LnL> copumpkin: gchristensen: I think half of the macs are not building anything
zybell_ has quit [Ping timeout: 256 seconds]
zybell_ has joined #nixos-dev