philr has joined #nix-darwin
johnw has joined #nix-darwin
philr has quit [Ping timeout: 248 seconds]
jrolfs has quit [Quit: WeeChat 2.0]
hamishmack has quit [Quit: Textual IRC Client: www.textualapp.com]
hamishmack has joined #nix-darwin
periklis has joined #nix-darwin
__Sander__ has joined #nix-darwin
periklis has quit [Remote host closed the connection]
periklis has joined #nix-darwin
johnw has quit [Ping timeout: 268 seconds]
johnw has joined #nix-darwin
periklis has quit [Ping timeout: 256 seconds]
philr has joined #nix-darwin
philr has quit [Quit: WeeChat 2.1]
periklis has joined #nix-darwin
niksnut_ has joined #nix-darwin
niksnut has quit [*.net *.split]
disasm has joined #nix-darwin
niksnut_ is now known as niksnut
__Sander__ has quit [Quit: Konversation terminated!]
jrolfs has joined #nix-darwin
periklis has quit [Remote host closed the connection]
periklis has joined #nix-darwin
jrolfs has quit [Ping timeout: 264 seconds]
jrolfs has joined #nix-darwin
jrolfs has quit [Ping timeout: 240 seconds]
jrolfs has joined #nix-darwin
Sonarpulse has joined #nix-darwin
jrolfs has quit [Ping timeout: 240 seconds]
jrolfs has joined #nix-darwin
jrolfs has quit [Ping timeout: 268 seconds]
philr has joined #nix-darwin
periklis has quit [Ping timeout: 256 seconds]
<johnw> LnL: ping
<LnL> pong
<johnw> LnL: n/m, I think I figured out my own predicament
<johnw> nix-docker doesn't provide 'tar', so fetchTarball was failing
<johnw> but I can temporarily set nixpkgs to <nixpkgs> and just install tar
jrolfs has joined #nix-darwin
* LnL quacks
<johnw> for some reason, this command: RUN nix-env --arg nixpkgs 'import <nixpkgs> {}' -f . -i tar
<johnw> is installing a WACKLOAD of stuff
<johnw> like, tons and tons of stuff
<johnw> somethings not right
<johnw> I think it's the stray "-f ."
<LnL> !-iA
<LnL> hmm, did I mess that up or is the bot not in here
<LnL> nix-env -f '<nixpkgs>' -iA gnutar
<johnw> I needed gnutar and gzip
<johnw> btw, I did not need this with 1.11.56
<johnw> btw, I did not need this with 1.11.6
<johnw> btw, I did not need this with 1.11.16?
<johnw> anyway, so it seems like a regression
<LnL> hmm, are you sure?
<johnw> yeah
<johnw> oh, no
<johnw> it's not
<johnw> in the other project where I use nix-darwin, I use import ((import <nixpkgs> {}).fetchFromGitHub
<johnw> and not fetchTarball
<johnw> I use fetchTarball in this other project for the sake of Travis
<johnw> LnL: hmm.. getting this happening in Docker: error: opening lock file '/nix/var/nix/db/big-lock': Permission denied
<LnL> my image?
<LnL> weird, I do something similar for tests at work
<LnL> it's 2018-03-13-patch1 and not 2018-03-13 right?
<johnw> correct
<johnw> at least, according to your README
jrolfs has quit [Ping timeout: 268 seconds]
<LnL> oh, didn't add the last update to the readme
philr has quit [Ping timeout: 264 seconds]
<LnL> looks ok tho
<johnw> hmm
<johnw> should I run as a particular user?
<johnw> should I run as root?
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nix-darwin
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nix-darwin
<LnL> root, unless you want to run a nix-daemon inside of the container
<johnw> LnL: still did not work
<johnw> same error
<LnL> is it the first command that fails or something else?
jrolfs has joined #nix-darwin
<johnw> this command: RUN nix-env -f . -i hnix
<johnw> I put "USER root" just before it
jrolfs has quit [Ping timeout: 260 seconds]
<LnL> not sure what's going on
<LnL> I can install and gc stuff
<johnw> LnL: quite strangely, if I cabal configure && cabal test myself, it works
<johnw> (inside a nix-shell) it only fails if I nix-build
<LnL> it does use build users
jrolfs has joined #nix-darwin
<johnw> hmmm
<LnL> but that doesn't really have anything to do with the gc lock
<LnL> unless... are you trying to do nix stuff inside of the build?
<johnw> yes
<johnw> I am
<johnw> I call nix-instantiate
<johnw> this is the build of hnix, which uses nix
<johnw> we don't have store mocking up yet
<LnL> yeah that won't work for multi-user installs
<johnw> any way I can switch my nix-docker into single-user mode?
<LnL> can you use --store local?root=
<johnw> really, that exact text?
<LnL> no, let me test
<LnL> yeah nix-instantiate '<nixpkgs>' -A hello --store "local?root=$(pwd)/prefix"
<LnL> echo $(pwd)/prefix/nix/store/*hello.drv
<johnw> so: RUN nix-env --store "local?root=$PWD" -f . -i hnix?
<LnL> the nix testsuite does something similar
<LnL> that's outside of the build
<johnw> what is outside of the build?
<LnL> nix-env
<johnw> so, I don't quite follow
<johnw> what do I do?
<LnL> you want to use the local in the hnix build, so it doesn't depend on access to the host store
<johnw> you mean, modify the sources that use nix-instantiate during the tests?
<LnL> yeah
<johnw> ok
<LnL> oh, it uses NIX_STORE_DIR
<johnw> "it"?
<LnL> the nix tests
<johnw> ah, interesting
<johnw> first trying your original formulation
<johnw> it worked!
<johnw> you're a genuius
<LnL> yeah, i'ts a bit more complex most of the testsuite talks to the daemon with the local socket inside the build
<LnL> you can also set NIX_REMOTE=local?root= if that's easier
<johnw> nah, this is easier
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nix-darwin
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nix-darwin
jrolfs_ has joined #nix-darwin
<johnw> LnL: I ended up using NIX_REMOTE too
jrolfs has quit [Ping timeout: 260 seconds]
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nix-darwin
savanni_ has joined #nix-darwin
kaychaks_ has joined #nix-darwin
cbarrett_ has joined #nix-darwin
sphalerite_ has joined #nix-darwin
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
savanni has quit [*.net *.split]
kaychaks has quit [*.net *.split]
cbarrett has quit [*.net *.split]
sphalerite has quit [*.net *.split]
savanni_ is now known as savanni
kaychaks_ is now known as kaychaks
cbarrett_ is now known as cbarrett
hamishmack has joined #nix-darwin
jrolfs_ has quit [Ping timeout: 260 seconds]
jrolfs_ has joined #nix-darwin
jrolfs_ has quit [Ping timeout: 260 seconds]
jrolfs_ has joined #nix-darwin
jrolfs_ has quit [Ping timeout: 240 seconds]