<clever>
theres a flag you can set to block all PM's from unregistered users
<clever>
ah, odd, does it work any better with "nix-shell -p gmp gcc" ?
<clever>
adding -p gcc would fix the problem i just noticed
<clever>
Armael: inside nix-shell -p gmp
<clever>
(when inside the nix-shell)
<clever>
Armael: check "type gcc", and compare it to the /run/current-system/sw/bin/gcc symlink, they should differ
<clever>
peti, Armael: oh i just remembered, nix-shell -p now has a "dead" gcc in its $PATH, because it used runCommandNoCC
<clever>
which may not be something you wanted enabled
<clever>
different packages sometimes need different versions of some things, and things sometimes turn stuff on automaticaly if header X is found in the include path
<clever>
so you cant just install a library and then compile against it
<clever>
its configured to ignore the outputs that have things like headers
<clever>
your not supposed to install things like compilers on nixos, thats what nix-shell is for
<clever>
so it wont catch things with permission errors
<clever>
i was going to say /proc/sys/vm/block_dump, but that only shows things that actualy work
<clever>
and thats what $HOME is set to during a build
<clever>
Rotaerk: strace is the simplest, strace -ff -o logfiles cabal2nix
2016-12-18
<clever>
ToxicFrog: its at ~/.nix-profile/metadata.nix i believe, which lives in /nix/store/ (symlinks)
<clever>
ToxicFrog: only thing that isnt managed by /etc/nixos is the list of packages you installed with nix-env -i
<clever>
9 days without an update
<clever>
angerman: yeah, same way nix-build does, it just copy-closure's all the inputs to a slave of the right arch, and copy-closure's the finished product back
2016-12-17
<clever>
hard to see where the error comes from
<clever>
Baughn: do you have a nix expression for context?
<clever>
Mic92: and it probably doesnt allow nesting a para in a para
<clever>
Mic92: so that </para> is to match up with stuff outside of the string
<clever>
Mic92: ah, i see the problem, every nixos option description is enclosed in a <para> pair
<clever>
but i grabbed the latest build of nix master by mistake
<clever>
my laptop was running a copy of nix from july of 2015, and i had to upgrade it with nix-store -r
<clever>
gchristensen: ah, ive had to manualy downgrade nix.db before once
<clever>
Mic92: 3 <literal> pairs, then a </para> that never began
<clever>
Mic92: strange, the xml is worse with the revert in place
2016-12-16
<clever>
but any wheeled mouse would have worked
<clever>
in my case, it was a teensy microcontroller setup to emulate a combo keyboard+mouse
<clever>
the solution, was to connected a device that claims to be a usb mouse with a wheel, and never touch it again
<clever>
the menu's are now 100% imposible to navigate
<clever>
and if it gets even 1 wheel down event, it infinitely scrolls to the bottom of the list
<clever>
then it gets a wheel up event, and infinitely scrolls to the top of the list, even when i try hitting the down arrow key
<clever>
so it thinks i lack a wheel
<clever>
in my case, i was using synergy, with zero mice connected
<clever>
viric: another more anoying bug i ran into on windows, certain games detect the lack of a mouse wheel, and decide to mess with how the wheel event behaves
<clever>
and was easily uninstalled
<clever>
said driver was probably having a segfault in kernelspace
<clever>
viric: that was the ONLY time i was able to track down the cause and fix it, the mobo vendor has a special driver for the "charging" usb ports
<clever>
viric: many years ago, i discovered that if you plug a teensy microcontroller into a usb hub, and into the special charging ports, you get a BSOD
<clever>
viric: months down the road, he starts the convo with 'do you think its my backup software?'
<clever>
viric: the user kept reporting that it was broken, they kept asking, "do you have any backup software" and he kept answering no
<clever>
viric: and backup software often reads those keys
<clever>
viric: that reminds me of a /r/talesfromtechsupport/ post i read a week ago, the software in question would brick itself if you try to read the licensing key files
<clever>
jazzencat: the video i linked, is the original sega development console, with specialized hardware to allow you to set breakpoints and inspect the state of the game
<clever>
MichaelRaskin: and i think the interactive debugger is raw dos, only windows95 lacks the security that allows dos to control isa cards directly
<clever>
MichaelRaskin: and this crazy guy is trying to make a game on it
<clever>
MichaelRaskin: the development hardware for the sega genesis? console only works on windows 95
<clever>
the linux steam also happens to use breakpad
<clever>
yeah, you already have stdenv being passed in, and stdenv.lib is there for this reason
<clever>
bachp: just elemAt doesnt work in the repl, havent really checked to see how nix files handle it
<clever>
bachp: a lot of nix files also have with lib; (or in this case, with stdenv.lib;) in them, so its just simpler to use the lib version
<clever>
bachp: elemAt is a built in, so you can also reference it via builtins.elemAt or __elemAt
<clever>
jazzencat: yep
<clever>
bachp: ah, id just use the expression i pasted above, its a bit more complex, but the next person to bump the version only has to edit 2 things (the version, and hash)
<clever>
bachp: this is my first thought on how to do it
<clever>
toogley: the current code is trying to start a new process, with zshrc (which isnt +x'd), and all variables that sets will be lost when it quits
<clever>
toogley: i think you want the source command
<clever>
that allows fetching something outside of nix, then adding it to the /nix/store, and getting the hash of it
<clever>
t2: and nix-store --add-fixed
<clever>
t2: it may help if you look at the nix-prefetch-git scripts
<clever>
t2: so no hash that upstream provides will work
<clever>
t2: nix usualy takes the hash of the NAR archive, not the bare file within it
<clever>
dan1: i also wired up a large arcade machine button to the reset pin on the rpi, so i could just punch that to test a build
<clever>
oh, and half of those files are outside of the git repo, unfinished work that got interupted by a power outage and then forgotten
<clever>
dan1: so with a single nix-build command, i can change all of the firmware the rpi runs, even if its unresponsive, without having to change the SD card out
<clever>
then i did more work on the QHttp variant, having forgotten about the websocketpp one
<clever>
Mic92: the old code used QHttp for the server, the fork used websocketpp
<clever>
Mic92: heh, looks like i had totally swapped out the http server i was using, and git doesnt merge that kind of thing well
<clever>
dan1: the entire thing compiles down to just a squashfs, kernel, and initrd
<clever>
dan1: i have a local fork (need to push it still) that can boot nix-daemon on a raspberry pi, and do sandboxes nix builds, with a 40mb ramdisk
<clever>
LnL: next thing i need is to do something with the default and example values, add a button to populate the left tree, and handle the xml in the description better
<clever>
but the main haskellPackages.foo build doesnt depend on that env
<clever>
mpickering: this will drop you into an env that has been specialy modified to make it easy to build foo by hand
<clever>
mpickering: .env is usefull mainly for building stuff by hand, nix-shell -A haskellPackages.foo.env
<clever>
mpickering: and in there is things like .env, which is a modified derivation for building foo, and the main build of foo doesnt depend on that env
<clever>
mpickering: everything inside the passthru attributeset can be accessed as an attribute on the derivation, but has no effect on the build
<clever>
mpickering: also of use, is line 291, passthru
<clever>
mpickering: yeah, line 136 and 137 concat a bunch of things, to make 2 main lists, and then lines 168 and 169 use those 2 lists
<clever>
mpickering: which probably helps ghc find the pieces of the entire closure, and optimize things to death
<clever>
mpickering: so if you put the haskell package foo into your buildInputs, you automaticaly get every haskell depdency of foo (recusrively)
<clever>
mpickering: looks like all of the haskell stuff goes into the propagated inputs, and the system stuff goes into the native inputs
<clever>
mpickering: line 157 of the file i linked
<clever>
mpickering: all of the haskell packages run thru a special function, that turns the list of haskellDependencies and systemDependencies into the more normal nativeBuildInputs stuff
<clever>
mpickering: that would be a nix function that combines everything together
<clever>
m`: what about ./.fetch-deps.sh; ?
<clever>
-I my-nixpkgs=/path/to/nixpkgs
<clever>
or the existance of a my-nixpkgs directory in one of the nix-path elements
<clever>
ah, so it will depend on what my-nixpkgs is set to in $NIX_PATH
<clever>
rly: what args are you giving to nix-build?
<clever>
mpickering: http://pastebin.com/17fnXRun all derivations can also be cast to a string, which is the path where that derivation will install to
<clever>
error: Package ‘StrategyLib-4.0.0.0’ in ‘/nix/store/jk5dvrv6w9bcgh88g0x7clk19df3q28f-nixos-17.03pre96925.1c50bdd/nixos/pkgs/development/haskell-modules/hackage-packages.nix:16093’ has an unfree license (‘unfree’), refusing to evaluate.
<clever>
mpickering: in theory, this will compile ghc 802, and build EVERYTHING with that ghc, then give you a ghc that can use everything at once
<clever>
mpickering: and set allowBroken = true; in ~/.nixpkgs/config.nix
<clever>
mpickering: haskell.packages.ghc802.ghcWithPackages (p: lib.filter (x: x ? meta && x.meta ? broken && !x.meta.broken) (lib.attrValues p))
<clever>
LnL: i think the stdenv is protecting the entire attribute, not just the derivation value
<clever>
but if i set allowBroken, it returns the meta
<clever>
error: Package ‘Elm-0.13’ in ‘/nix/store/jk5dvrv6w9bcgh88g0x7clk19df3q28f-nixos-17.03pre96925.1c50bdd/nixos/pkgs/development/haskell-modules/hackage-packages.nix:4484’ is marked as broken, refusing to evaluate.
<clever>
LnL: you cant inspect the values on a broken package, to see if its broken
<clever>
LnL: oh, i see the problem
<clever>
mpickering: under nix, your not supposed to install such dependencies, you list them in the package, and nix will just build things for you
<clever>
error: Package ‘Elm-0.13’ in ‘/nix/store/jk5dvrv6w9bcgh88g0x7clk19df3q28f-nixos-17.03pre96925.1c50bdd/nixos/pkgs/development/haskell-modules/hackage-packages.nix:4484’ is marked as broken, refusing to evaluate.
<clever>
nix-repl> haskell.packages.ghc802.ghcWithPackages (p: lib.filter (x: x ? meta && x.meta ? broken && !x.meta.broken) (lib.attrValues p))
<clever>
oh, maybe it was under meta
<clever>
error: Package ‘Elm-0.13’ in ‘/nix/store/jk5dvrv6w9bcgh88g0x7clk19df3q28f-nixos-17.03pre96925.1c50bdd/nixos/pkgs/development/haskell-modules/hackage-packages.nix:4484’ is marked as broken, refusing to evaluate.
<clever>
LnL: error: Package ‘NewBinary-0.2.1’ in ‘/nix/store/jk5dvrv6w9bcgh88g0x7clk19df3q28f-nixos-17.03pre96925.1c50bdd/nixos/pkgs/development/haskell-modules/hackage-packages.nix:12162’ is marked as broken, refusing to evaluate.