<clever>
hyper_ch: yeah, but there isnt much information there, you want to get a shell before it imports the pools and try to inspect what is going wrong
<clever>
ghostyy: you need to use clangStdenv.mkDerivation
<clever>
Guest50547: you can always rollback from grub if it ever breaks massively, and always change the channel back whenever it does break
<clever>
Guest50547: i also run nearly all of my machines from nixos-unstable, and they are perfectly stable
<clever>
Guest50547: if you check `nix-channel --list`, youll see you have 2 channels on root, `nixos-rebuild` only uses the channed named nixos
<clever>
Guest50547: the above change should also work, and entirely ignore channels
<clever>
dramforever: i can tell your downloading ghc just from the size of the download :P
<clever>
irc12286: yeah, id ctrl+c it, then run `nix-collect-garbage --max-freed 1`
<clever>
hodapp: cant you just split the python bindings into a seperate derivation?
<clever>
vaibhavsagar: ah, looking at the source, the error implies that run() should never return, but it did
<clever>
vaibhavsagar: fprintf(stderr,\"What, run() returned!\\n\"); is a line in some of the src
<clever>
vaibhavsagar: dang, got distracted
<clever>
so the strace is going to capture the run() issue
<clever>
vaibhavsagar: nix-build fakes the uname, so it thinks the kernel is 32bit only, when set to 32bit mode
<clever>
vaibhavsagar: re-running nix-build with an strace on the nix-daemon
<clever>
vaibhavsagar: so the build system is broken and checking uname to see what arch it should target
<clever>
vaibhavsagar: nix-build with a sandbox enabled will fake the uname output
<clever>
vaibhavsagar: i think i see the problem, nix-shell is giving you a 32bit only gcc, but uname still reports 64bit
<clever>
vaibhavsagar: i ran nix-shell then genericBuild, its building again
<clever>
vaibhavsagar: i also get that run() error with nix-build
<clever>
vaibhavsagar: and how does it behave differently in nix-shell?
<clever>
vaibhavsagar: what stage does it fail at?
<clever>
vaibhavsagar: yeah, that should give a 32bit shell
<clever>
vaibhavsagar: what is the content of default.nix?
<clever>
vaibhavsagar: use pkgsi686Linux.stdenv.mkDerivation, not -p
<clever>
srk: i always use an ext4 /boot
<clever>
hyper_ch2: /nix/store/ is too big for poor old grub to read :P
<clever>
hyper_ch2: if /boot and /nix/store are on the same FS, then the default grub.conf file will just direct grub to read /nix/store/ directly
<clever>
hyper_ch2: copy kernels to /boot/
<clever>
hyper_ch2: allow a shell by editing the kernel params in grub, then try to import it manually, what happens?
<clever>
yep
<clever>
kalbasit: also, super and self are likely copies of nixpkgs, so you can skip line 4 entirely
<clever>
kalbasit: by setting config = {}; you can stop all the overrides from leaking in
<clever>
kalbasit: maybe also pass config={}; to line 4 as well
<clever>
kalbasit: and once you do import it, pass config = {}; to make it ignore the overrides on the host
<clever>
kalbasit: line 8, your not even importing the pinnedPkgs, your trying to treat the path as a set
<clever>
kalbasit: you have an override in your ~/.config directory that isnt compatible with the pinned version
<clever>
.overrideAttrs
<clever>
it will create a $out/nix-support/failed to indicate failure
<clever>
fresheyeball: if you set succeedOnFailure on a derivation, then it will still pass, even when failing
<clever>
angerman: i usually just let /etc/nix/machines auto-select one at random
2018-07-18
<clever>
le_jonge: you need to use the repl command i believe, not project-test
<clever>
le_jonge: nix-build will check the value of argv[0] to decide what mode to run in
<clever>
le_jonge: nix-shell and nix-build are the exact same binary, both are in the nix repo
<clever>
le_jonge: ghc itself is not installed, so i dont need --pure very often
<clever>
le_jonge: this is why i just installed ghcid system wide
<clever>
le_jonge: you could maybe use mapAttrs in shell.nix, to mutate every single attribute, and do it in a shallow manner, so the deps arent modified
<clever>
le_jonge: and the new mkDerivation can append ghcid to the inputs
<clever>
le_jonge: line 47 loads the stack2nix output, 51 passes it a set of overrides, and and 99 overwrites mkDerivation
<clever>
so it must be doing something funky to allow that
<clever>
so you cant access db.sqlite or nix-daemon when doing `nix copy` inside nix-build
<clever>
but recursive nix is not finished
<clever>
then copying to an image later
<clever>
gchristensen: ahh, so it appears to be making a storedir inside a storepath
<clever>
gchristensen: usually, the mkfs is ran inside the qemu, as is the nix copy
<clever>
gchristensen: and if you make an override to run the same query inside the qemu instance?
<clever>
gchristensen: what path is coming up wrong now, and what is the hash on each end?
<clever>
gchristensen: is any of this building against master?
<clever>
gchristensen: weird
<clever>
gchristensen: ?
<clever>
Pneumaticat: services.toxvpn = { enable = true; localip = "10.x.y.z"; }; and then run toxvpn-remote and its help sub-command to link the peers up
<clever>
Pneumaticat: i simply have 2 IP's that work for reaching some machines, and 1 IP always works
<clever>
Pneumaticat: the vpn doesnt change the default gateway, so i can choose to use it or not on a per-connection basis
<clever>
Pneumaticat: at all times
<clever>
d1rewolf_: yeah, that is rather strange
<clever>
Pneumaticat: i run nixops on my laptop, and i have a VPN setup, so it can still reach all the machines in the cluster
<clever>
d1rewolf_: yep
<clever>
yep
<clever>
gchristensen: i have also run into 9plan bugs, where a directory has totally wrong contents, try to ls glibc inside the derivation, inside qemu, if you can
<clever>
so it has to nix-store --verify --check-contents inside the build every single time
<clever>
gchristensen: and that closure export lacks hashes
<clever>
gchristensen: the qemu uses 9plan to mount the host nix store, and a closure export to limit its db.sqlite to just the closure of that build
<clever>
gchristensen: do you know if its running qemu inside linuxkit, to generate the nova image?
<clever>
grep nixpkgs for fetchpatch to find examples
<clever>
acowley: you probably want to run fetchpatch over that url first
<clever>
d1rewolf_: dang, nothing obvious to me, all i can think of is to try and enable a serial console
<clever>
d1rewolf_: they arent, thats why i keep my config in a git repo and also have zfs snapshots
<clever>
d1rewolf_: can you screenshot it when its hung and upload that somewhere?
<clever>
d1rewolf_: what changes where made to the config?
<clever>
d1rewolf_: `journalctl -b -1` will filter it to the prebious boot
<clever>
d1rewolf_: ah
<clever>
d1rewolf_: but if you have a dedicated usb keyboard, you could forward that in
<clever>
d1rewolf_: dang, i checked and it doesnt, only options to insert some combos
<clever>
d1rewolf_: virtualbox may have checkboxes in the menu to hold ctrl and alt
<clever>
gchristensen: id run `nix-store --delete` on the remote one, and then try the build again
<clever>
gchristensen: one option is to tar it up on the remote end, then `ssh remote 'cat foo.tar' > foo.bar`
<clever>
gchristensen: ah
<clever>
gchristensen: any update?
<clever>
gchristensen: try to rsync them into the same machine, and then run `diff -ru` on the 2 to see how they differ
<clever>
gchristensen: i suspect that either the remote slave has a corrupt copy of glibc, or you built your own before hydra, and the build is not deterministic
<clever>
gchristensen: and if you run this on the linuxkit machine: nix-store --query --hash /nix/store/2kcrj1ksd2a14bm5sky182fv2xwfhfap-glibc-2.26-131
<clever>
gchristensen: is 9plan at play?
<clever>
gchristensen: can you run `nix-store --query --hash` on the problem storepath, on both machines?
<clever>
gchristensen: yeah
<clever>
d1rewolf_: the one in nix-env has priority, so you wont be getting any updates configuration.nix brings in
<clever>
d1rewolf_: and roots profile is also available to all users
<clever>
d1rewolf_: you can also `nix-env -q` to list what is currently installed in the user profile
<clever>
d1rewolf_: yeah
<clever>
d1rewolf_: and also remove them from nix-env
<clever>
rydnr: ^^^
<clever>
rydnr: it may help to read something like <setup.sh> and learn how the stdenv works
<clever>
so i try to use boot instead
<clever>
switch can get funky with such major version changes
<clever>
so you need to reboot next
<clever>
rydnr: `nixos-rebuidl boot` sets up grub to run the new version when you reboot
<clever>
drbrule: i put the latest rev from nixos-unstable in the url
<clever>
nh2: let me find it...
<clever>
drbrule: its best to set it to a single rev, so it doesnt change
<clever>
nh2: by default, nixos doesnt do very much static linking
<clever>
2018-07-17 11:53:19 < clever> drbrule: something like this would be a good start: export NIX_PATH=nixpkgs=https://github.com/nixos/nixpkgs/archive/dae9cf6106d.tar.gz
<clever>
drbrule: if you do the export i gave above, then it will find the bootstrap nixpkgs
<clever>
drbrule: then uses that to download the nixpkgs defined in the json
<clever>
drbrule: it loads nixpkgs from $NIX_PATH
<clever>
drbrule: your bootstrap nixpkgs needs a NIX_PATH
<clever>
drbrule: something like this would be a good start: export NIX_PATH=nixpkgs=https://github.com/nixos/nixpkgs/archive/dae9cf6106d.tar.gz
<clever>
drbrule: and you really want to set it to a specific revision, so the nixpkgs doesnt change without warning
<clever>
drbrule: NIX_PATH is blank by default, you need to set it yourself
<clever>
i still have a gentoo in the house, and a few ubuntu in the cloud
<clever>
and its recursive like imports, so you can make a tree of files, that require more
<clever>
slabity[m]: you can put require = [ ./trivial.nix ./trivial-vbox.nix ./your-other-files.nix ]; into a single nix file, and then run `nixops create` on that single file
<clever>
gchristensen: nixops also allows you to make a tree of files, similar to imports in nixos
<clever>
i need to head to bed now, its 1am
<clever>
then you want something that can cache the builds