thc202 has quit [(Ping timeout: 260 seconds)]
glines has quit [(Ping timeout: 240 seconds)]
matthewbauer has joined #nixos
<Biappi> i am trying nix for the first time but it's a bit overwhelming. i have this http://hastebin.com/xezezateya.js that "mostly works". i have it outside nixpkgs and i can build it, however now i would like to add some derivations as dependencies for this package but i don't understand how
<gchristensen> Biappi: what do you mean by add some derivations as dependencies? you have many dependencies there already.
<Biappi> yes, but those come from nixpkg. i would like to specify additional derivations rules for stuff that's not in nixpkgs
<gchristensen> ah, do you have expressions for those?
<Biappi> no, i would like to specify those in the same default.nix
<gchristensen> can you write an example expression for one of them, and then, do: let foo = <yourexpression> in stdenv.mkDerivation ... buildInputs = [ ... foo ];
<Biappi> oh i think i get it. stdenv.mkDerivation will evaluate in a function, that the let binds to foo, that will be in scope of the "with"
<gchristensen> well so let FOO in BAR puts things set in FOO in scope for BAR
<Biappi> thanks
<gchristensen> the "with BAZ" statement takes everything in BAZ and puts it in scope
<pikajude> with { a = 1; }; a
<gchristensen> a set in the { ... } makes `a` in scope of the subsequent statements
<Biappi> oh i see. now that boilerplate first line makes more sense as well
<mog> im trying to do an upgrade and the download cant seem to find google-chrome-stable package
<mog> i found it and downloaded it by hand manually
<mog> how do i add it to the store
<gchristensen> mog: can you paste the error you're seeing for google-chrome-stable?
<mog> error: cannot download google-chrome-stable_54.0.2840.90-1_amd64.deb from any mirror
<gchristensen> Biappi: that could be rewritten as follows:
<mog> so i just googled for that exact version and found it on an archive site
<mog> i have that deb just need to insert it
newhoggy_ has joined #nixos
newhoggy_ has quit [(Remote host closed the connection)]
newhoggy_ has joined #nixos
newhogg__ has joined #nixos
<gchristensen> mog: you can do nix-store --add ./foo.deb
<Biappi> gchristensen: thank you. really appreciate that
newhoggy has quit [(Ping timeout: 258 seconds)]
<gchristensen> Biappi: do you see how the with is different in those cases? it took me a while to get it.
CrashOverride has joined #nixos
<mog> gchristensen, thank you i couldnt remember the command that seemeed to work
<gchristensen> great
rardiol has quit [(Remote host closed the connection)]
<mog> spoke to soon
<Biappi> gchristensen: yes, it's slightly akin to the python `from module import *`, vs. `import module`
<mog> it still tried to curl it and failed
eacameron has joined #nixos
<gchristensen> ah yes
<gchristensen> mog: sounds like its hash isn't matching
<gchristensen> mog: are you on 16.09
<gchristensen> ?
newhoggy_ has quit [(Ping timeout: 240 seconds)]
<mog> thats what im trying to upgrade to
<gchristensen> ahh
<mog> i did nix-channel --add to 16.09
<mog> and then nix-switch rebuild --upgrade
* gchristensen is looking
seppellll has joined #nixos
rardiol has joined #nixos
eacameron has quit [(Ping timeout: 258 seconds)]
<gchristensen> mog: can you paste the output from the failed rebuild?
<NixOS_GitHub> [nixpkgs] dezgeg pushed 3 new commits to master: https://git.io/v1IO4
<NixOS_GitHub> nixpkgs/master 02e1846 Tuomas Tynkkynen: U-Boot: 2016.05 -> 2016.11
<NixOS_GitHub> nixpkgs/master 25d6bfa Tuomas Tynkkynen: raspberrypifw: 1.20160620 -> 1.20161020
<NixOS_GitHub> nixpkgs/master 86ea312 Tuomas Tynkkynen: linux_rpi: 1.20160620 -> 1.20161020
<gchristensen> mog: and can you paste the contents of /nix/var/nix/profiles/per-user/root/channels/manifest.nix?
markus1189 has joined #nixos
<Biappi> having this works: http://hastebin.com/anigemiluy.js, however, anyone knows a way i can nix-shell onto that "libjack" to debug build issues? i tried using `nix-shell default.nix -p libjack` to no avail
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/v1IOD
<NixOS_GitHub> nixpkgs/master eecf76e Tim Steinbach: linux: 4.9-rc6 -> 4.9-rc7
griff_ has quit [(Quit: griff_)]
markus1199 has quit [(Ping timeout: 252 seconds)]
<mog> gchristensen, [ { meta = { }; name = "nixos-16.09.1119.ece0cea"; out = { outPath = "/nix/store/7v2wgk8vlfciwd1q66hrsn6fapl03007-nixos-16.09.1119.ece0cea"; }; outPath = "/nix/store/7v2wgk8vlfciwd1q66hrsn6fapl03007-nixos-16.09.1119.ece0cea"; outputs = [ "out" ]; system = "x86_64-linux"; type = "derivation"; } ]
griff_ has joined #nixos
CrashOverride has quit [(Ping timeout: 260 seconds)]
<clever> Biappi: -p and passing files in dont work together
<gchristensen> mog: and the failing build output?
<gchristensen> ahh interesting, this is building chromium with widevine which is failing.
saintromuald has quit [(Ping timeout: 250 seconds)]
saintromuald has joined #nixos
<gchristensen> mog: I'm having a hard time replicating this problem. can you open an issue, and tag aszlig?
<mog> sure im gonna try disabling the plugi n
<gchristensen> you may also try using google-chrome isntead of chromium
shanemikel has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos []
matthewbauer has quit [(Ping timeout: 256 seconds)]
<saintromuald> is there a gui package manager for nixos by any chance?
<gchristensen> saintromuald: I think there are a few, but not really
<samueldr> google-chrome (stable) does not currently download on 16.09.1119.ece0cea
<Biappi> clever: oh, i see... so how can i specify it? it is possible at all?
<shanemikel> How can I get it so that nix-shell for a given derivation has dependencies that the derivation itself does not? like completion, some utils like hostname, whatever else
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to release-16.09: https://git.io/v1Ist
<NixOS_GitHub> nixpkgs/release-16.09 f74f42b Herwig Hochleitner: chromium: 54.0.2840.90 -> 54.0.2840.100...
<gchristensen> samueldr, mog: ^
<mog> nice
<mog> but that wont get updated for a while right?
* gchristensen goes to see
<samueldr> nice
<gchristensen> that is correct, mog
<mog> thanks for heads up
<samueldr> neat
<gchristensen> hrmm we won't release for a while especially b/c the i686 builds are all broken
<clever> Biappi: modify the nix file to add that to buildInputs
<clever> Biappi: or use an override
<Biappi> clever: i'm afraid i don't understand enough to follow
<clever> Biappi: nix-shell -E 'with import <nixpkgs>{}; (callPackage ./default.nix {}).overrideDerivation (old: { nativeBuildInputs = old.nativeBuildInputs ++ [ libjack ]; })'
<Biappi> it is in the buildInputs
<clever> Biappi: if its already in buildInputs, then you dont need -p libjack
<shanemikel> like `which` would be nice to have in all my shells. nix-shell looks like it pulls in completion by default, but I'm trying to override my --rcfile (to set a custom prompt and get lscolors and such, but I lose the completion when I do it
<clever> nix-shell will load everything in buildInputs for you
<Biappi> clever: the problem is that it fails compilation, so i wanted to examine the environment and fix it. the build failure prevents nix-shell to continue and exits
<clever> Biappi: after the failure, you can re-run nix-shell and it will restore the env
<Biappi> clever: as in, just re-run it? http://hastebin.com/qidoxunofu.sql
glines has joined #nixos
filterfish_ has quit [(Quit: Leaving)]
<clever> Biappi: the problem is not in the derivation nix-shell was ran against
<clever> Biappi: so nix-shell is failing at the dependency building, and re-running it wont help
<clever> Biappi: what is the contents of default.nix?
<Biappi> clever: it still looks like http://hastebin.com/anigemiluy.js
<clever> Biappi: ah, then you will probably just want nix-shell '<nixpkgs>' -A libjack
<clever> that will give you a shell for building jack, rather then a shell for building calf
<clever> oh, and your override wont be there
<Biappi> bingo... that's not an override, just a plain reimplementation (at least that was my intention)
<clever> make a new nix file, with only lines 4-11 of the current one, and run nix-shell on that
<Biappi> then i guess i can import it in default.nix. thanks for the patience
<clever> Biappi: i see where your problem is now, your missing all of jacks buildInputs, so you basicaly have to rewrite the jack package
<clever> Biappi: you probably want an override instead
newhogg__ has quit [(Remote host closed the connection)]
<Biappi> clever: i am running on osx, the nixpkg version defines compatibility for linux only, and i don't know enough of the nix infrastructure to do a proper override... i was kind of cheating with what i know about building software in general and with the least knowledge of nix i could get by
<clever> ahh
<clever> checking one of your pastebins i see this: no configure script, doing nothing
<clever> so the tar.bz2 you pointed it at lacks a configure script
<clever> Biappi: if its using autoconf, you can do buildInputs = [ autoreconfHook ]; to generate one
<Biappi> yeah i think i can handle the build failure, but having an environment i can examine would be excellent
<shanemikel> clever: are buildInputs loaded by nix-build?
<clever> shanemikel: buildInputs are loaded by setup.sh, which ran by nix
<clever> shanemikel: here is an example of a bare-bones derivation, that makes no direct use of stdenv: https://github.com/cleverca22/nix-tests/blob/master/bare-env.nix
<clever> shanemikel: and the output when running it: https://github.com/cleverca22/nix-tests/blob/master/bare-env.txt
<shanemikel> where is the documentation for stdenv anyway?
<clever> shanemikel: on line 6-8, you can see the effect of the process namespace, the builder believes that bash is pid 1, and the ps aux is pid 2
<clever> it should be in the nixpkgs manual
<clever> shanemikel: when stdenv is in use, the builder is set to https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/default-builder.sh
herzmeister has quit [(Quit: Leaving)]
herzmeister has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #20740: rogue: Add alternative source archive URLs. (master...rogue_mirror) https://git.io/v1kUa
athan has quit [(Read error: Connection reset by peer)]
athan has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #16623: hashcat: 2.0.0 -> 3.0.0 (master...hashcat-3.0.0) https://git.io/vopsG
<NixOS_GitHub> [nixpkgs] grahamc pushed 2 new commits to master: https://git.io/v1IGi
<NixOS_GitHub> nixpkgs/master 031d639 Guillaume Koenig: encryptr: init at 2.0.0
<NixOS_GitHub> nixpkgs/master 7b56195 Graham Christensen: Merge pull request #20250 from guillaumekoenig/add-encryptr-2.0.0...
<NixOS_GitHub> [nixpkgs] fpletz pushed 3 new commits to master: https://git.io/v1IG1
<NixOS_GitHub> nixpkgs/master d753527 rnhmjoj: fakeroute: init at 0.3
<NixOS_GitHub> nixpkgs/master 7eb9a03 rnhmjoj: fakeroute: add service
<NixOS_GitHub> nixpkgs/master e394c30 Franz Pletz: Merge pull request #20620 from rnhmjoj/fakeroute...
ebzzry_ has joined #nixos
ebzzry has quit [(Ping timeout: 256 seconds)]
zraexy has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to master: https://git.io/v1IZe
<NixOS_GitHub> nixpkgs/master 6d47cb4 Vincent Demeester: skopeo: init at 0.1.16...
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #20667: skopeo: init at 0.1.16 (master...add-skopeo) https://git.io/v1vHg
<gchristensen> fpletz: woohoo, we're under 300 :P
nckx has quit [(Quit: ☭ + 🐧 + GNU Guix: https://gnu.org/s/guix)]
nckx has joined #nixos
echo-area has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 2 new commits to master: https://git.io/v1IZc
<NixOS_GitHub> nixpkgs/master c04f113 montag451: epiphany: enable the playing of HTML5 videos
<NixOS_GitHub> nixpkgs/master 8d6490b Graham Christensen: Merge pull request #20732 from montag451/epiphany-html5-video...
sigmundv has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 2 new commits to master: https://git.io/v1IZV
<NixOS_GitHub> nixpkgs/master 3bfed00 Lancelot SIX: dico: 2.3 -> 2.4
<NixOS_GitHub> nixpkgs/master 8bee129 Graham Christensen: Merge pull request #20627 from lsix/update_dico...
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #20754: multi-ghc-travis: git-2015-11-04 -> git-2016-10-23 (master...bump/multi-ghc-travis) https://git.io/v1kN9
NEo4v8_ has quit [(Ping timeout: 248 seconds)]
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #20717: sks: init at 1.1.6 (master...sks) https://git.io/v1UN3
newhoggy has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #20609: matrix-synapse service: Make url_preview_enabled optional (master...master) https://git.io/vXA8Y
lverns has joined #nixos
derjohn_mob has quit [(Read error: Connection reset by peer)]
derjohn_mob has joined #nixos
<NixOS_GitHub> [nixpkgs] garbas opened pull request #20759: neovim: 0.1.6 -> 0.1.7 (master...master) https://git.io/v1InJ
mizu_no_oto has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to master: https://git.io/v1InT
<NixOS_GitHub> nixpkgs/master 2891256 Graham Christensen: skopeo: fix evaluation, change license from asl2 to asl20
mbrgm_ has joined #nixos
mbrgm has quit [(Ping timeout: 265 seconds)]
mbrgm_ is now known as mbrgm
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #20665: delve: init at 0.11.0-alpha (master...delve-0.11-alpha) https://git.io/v1vSs
sigmundv has quit [(Ping timeout: 248 seconds)]
boegel has quit [(Ping timeout: 260 seconds)]
Wizek has joined #nixos
boegel has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #20113: Adjust ruby gem defaults for scrypt on darwin (master...ruby-scrypt-darwin) https://git.io/vXZPk
<fpletz> gchristensen: can we get below 200? I remember a few months ago on a sunday night like this when I got it below 200 %)
<gchristensen> gosh, maybe :)
<gchristensen> though at our rate ... not so sure.
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #19818: XTerm: fix app-defaults, fixes menu options (master...xterm-fix-app-defaults) https://git.io/vPN5f
<NixOS_GitHub> [nixpkgs] spacekitteh closed pull request #20513: [wip] nodejs: Flag to disable building with openSSL (master...patch-14) https://git.io/vX7K2
<spacekitteh> gchristensen: can u merge this? :( https://github.com/NixOS/nixpkgs/pull/20177/files
<gchristensen> looks great!
<NixOS_GitHub> [nixpkgs] garbas closed pull request #20759: neovim: 0.1.6 -> 0.1.7 (master...master) https://git.io/v1InJ
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to master: https://git.io/v1Ick
<NixOS_GitHub> nixpkgs/master 016fa06 Sophie Taylor: cjdns: Improving systemd unit description
<spacekitteh> ^_________^
<gchristensen> :)
<NixOS_GitHub> [nixpkgs] grahamc pushed 2 new commits to master: https://git.io/v1Icm
<NixOS_GitHub> nixpkgs/master 0164326 Vlad Ki: ceres-solver: glog builds on darwin just fine now
<NixOS_GitHub> nixpkgs/master 5406702 Graham Christensen: Merge pull request #20549 from proger/ceres-solver-darwin...
<gchristensen> fpletz: well, we've done about 15...
<NixOS_GitHub> [nixpkgs] spacekitteh closed pull request #20177: cjdns: Improving systemd unit description (master...patch-5) https://git.io/vX8CD
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<shanemikel> funny... I can't figure out this error: called with unexpected argument "outPath"
<NixOS_GitHub> [nixpkgs] grahamc pushed 2 new commits to master: https://git.io/v1Icc
<NixOS_GitHub> nixpkgs/master bff2b98 Michael Fellinger: ruby: 3.2.1 -> 2.3.3
<NixOS_GitHub> nixpkgs/master d1055c0 Graham Christensen: all-packages.nix: whitespace cleanup
<shanemikel> nix_eval --expr '({buildInputs}: buildInputs) ((import <nixpkgs> {}).hello)'
<spacekitteh> gchristensen: what do you think? https://github.com/NixOS/nixpkgs/pull/20222#pullrequestreview-10250551
hexagoxel has quit [(Ping timeout: 264 seconds)]
<shanemikel> err... nix-instantiate --eval --expr ...
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #20755: ruby: add 2.3.3 (master...ruby-2-3-3) https://git.io/v1kAg
hexagoxel has joined #nixos
<gchristensen> not really sure, spacekitteh
<gchristensen> fpletz: we're getting close to 20 merged PRs
<gchristensen> fpletz: I'm not sure I'm going to make it to 30, much less 100 :(
<fpletz> don't make it look like we have a life besides nix :>
<gchristensen> oh, no, I don't, I'm just very sleepy ;)
* goodwill hands gchristensen some warm milk, or some other sleep inducing liquid or something
<fpletz> no, he needs more mate! :)
<avn> goodwill: scotch is most sleep inducting ;)
UgJkA has quit [(Ping timeout: 240 seconds)]
shanemikel has quit [(Quit: My MacBook Air has gone to sleep. ZZZzzz…)]
<goodwill> fpletz: what are we thinking? squirting milk at gchristensen ?
<gchristensen> haha, I think he means mate tea
shanemikel has joined #nixos
* gchristensen hugs goodwill
ugjka has joined #nixos
sdothum has quit [(Quit: ZNC - 1.6.0 - http://znc.in)]
* goodwill hugs back
<goodwill> lolz
<goodwill> I am just thinking automation ...
<fpletz> gchristensen: well, actually, here in germany we have bottled mate ice tea :)
<goodwill> gchristensen: go to sleep, you do too much as it is
<gchristensen> fpletz: huh, I'd try that.
<fpletz> much healthier than energy drinks and as effective :)
<gchristensen> thank you, goodwill
<fpletz> that's why I'm still awake at 4:30am
acertainkind has joined #nixos
<shanemikel> this one works just fine: nix_eval --expr '(import <nixpkgs> {}).hello.buildInputs'
<gchristensen> well you should go to bed, too, fpletz
<spacekitteh> gchristensen: *nodnods*
<gchristensen> being involved with #nixos and all these europeans pushed me to add a "time in Europe/Berlin" to my desktop.
sdothum has joined #nixos
<roxma> Hi, I'm trying to install nixos into a portable usb flash drive. I just noticed the boot.loader.grub option. I use '/dev/sdc' for installation currently.
<spacekitteh> gchristensen: hah
<roxma> But the flast drive will not always be recognized as '/dev/sdc', on other computer, isn't it?
<shanemikel> oh... elipses
<roxma> So if I change the configuration elsewhere, Do I have to keep this option changed properly before the build swith?
<gchristensen> goodwill: I'm in a quarterly on-site right now, in NYC... can never sleep well in NYC.
CMCDragonkai has quit [(Remote host closed the connection)]
<roxma> Maybe I should just comment out those grub options after first installation.
mizu_no_oto has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #13566: Gogs: init at 20160304-d57a2b9 (master...gogs) https://git.io/v2VMo
justan0theruser has joined #nixos
CMCDragonkai has joined #nixos
justanotheruser has quit [(Ping timeout: 252 seconds)]
CMCDragonkai has quit [(Remote host closed the connection)]
mizu_no_oto has quit [(Ping timeout: 260 seconds)]
<spacekitteh> gchristensen: do you know how to fix this? my mind is kinda whack at the moment https://github.com/NixOS/nixpkgs/pull/20727
CMCDragonkai has joined #nixos
nh2_ has quit [(Quit: Leaving.)]
PragCyph1 has joined #nixos
PragCyphr has quit [(Ping timeout: 256 seconds)]
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #14674: xdg_utils: fix replacement of which with type -P (master...patch-1) https://git.io/vwvZw
matthewbauer has joined #nixos
systemfault has quit [(Quit: Bye!)]
NEo4v8_ has joined #nixos
proteus-guy has quit [(Ping timeout: 248 seconds)]
NEo4v8_ has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub> [nixpkgs] sh01 opened pull request #20761: rogue: Add alternative source archive URLs. (release-16.09...cp_rogue_mirror) https://git.io/v1IWK
edvorg has joined #nixos
NEo4v8_ has joined #nixos
proteus-guy has joined #nixos
irctc256 has joined #nixos
<irctc256> Hey all, are there best practices for putting configuration.nix under version control?
athan has quit [(Ping timeout: 260 seconds)]
<MichaelRaskin> roxma: maybe /dev/disk/by-uuid would help you
derjohn_mob has quit [(Ping timeout: 246 seconds)]
bfrog has quit [(Quit: WeeChat 1.6)]
systemfault has joined #nixos
lverns has quit [(Ping timeout: 256 seconds)]
glines has quit [(Ping timeout: 268 seconds)]
athan has joined #nixos
edvorg has quit [(Ping timeout: 256 seconds)]
Wizek_ has joined #nixos
<shanemikel> I'm trying to add paths `toPath (getEnv "PWD") + /shell.nix' and getting an error that /shell.nix doesn't exist.. (I know, you can use ./, but I'm using a symlink to this script so that doesn't work right)
<roxma> MichaelRaskin: Thanks, I'm using /dev/disk/by-id now
<shanemikel> shouldn't it add regardless of wether the file exists (so I can check it afterwards)?
ebzzry_ has quit [(Ping timeout: 250 seconds)]
yodeler has quit [(Remote host closed the connection)]
sdothum has quit [(Quit: ZNC - 1.6.0 - http://znc.in)]
<MichaelRaskin> shanemikel: put /shell.nix into quotes, so it is a string
<shanemikel> so when does writing a path require the file to exist?
<MichaelRaskin> By the way, I think ./ works relative to truename in Nix
<MichaelRaskin> More or less always
<MichaelRaskin> The point is that if the file is outside the Nix store, it gets copied and then the path points inside store
<shanemikel> oh.. somehow I missed that
<shanemikel> thanks
<shanemikel> so what's pathExists for? It does take a path and not a string, right?
<MichaelRaskin> I think it should work with strings, too
<shanemikel> somehow I have ./pkgs.nix in my expression for shell.nix which is symlinked into my directory (with ./pkgs.nix), and there is an error that the file doesn't exist in the directory in which the shell.nix file resides (even though I'm calling nix-shell from the dir with the symlink)
<MichaelRaskin> Are right, Nix always follows the symlink
<shanemikel> or is that what you mean by truename
matthewbauer has quit [(Ping timeout: 265 seconds)]
<MichaelRaskin> Yes
<MichaelRaskin> Then the PWD code makes sense…
rui has joined #nixos
<rui> Anyone knows how to fix Julia packages that have binary dependencies, to work on NixOS? Such as IJulia, BenchmarkTools and others?
<MichaelRaskin> Well, you can set LD_LIBRARY_PATH
djvdorp has quit [(Ping timeout: 260 seconds)]
derjohn_mob has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #19670: lib.types.loeOf: treat <elem> as [<elem>] (master...types) https://git.io/vPyVg
pi3r has joined #nixos
irctc256 has quit [(Ping timeout: 260 seconds)]
shanemikel has quit [(Quit: Textual IRC Client: www.textualapp.com)]
jacob_ has joined #nixos
herzmeister has quit [(Ping timeout: 260 seconds)]
jacob_ is now known as Guest19059
Mercuria1Alchemi has joined #nixos
djvdorp has joined #nixos
<ronny> #re
<ronny> again: how to enable fast user switchign on gdm?
fritschy has joined #nixos
pi3r has quit [(Read error: Connection reset by peer)]
MichaelRaskin has quit [(Quit: MichaelRaskin)]
herzmeister has joined #nixos
systemfault has quit [(Quit: Bye!)]
matthewbauer has joined #nixos
matthewbauer has quit [(Ping timeout: 248 seconds)]
newhoggy_ has joined #nixos
itorres has joined #nixos
newhoggy has quit [(Ping timeout: 258 seconds)]
newhoggy_ has quit [(Ping timeout: 260 seconds)]
katyucha has joined #nixos
AppAraat is now known as Guest92045
AppAraat has joined #nixos
Guest92045 has quit [(Ping timeout: 258 seconds)]
johann__ has joined #nixos
blahdodo has quit [(Remote host closed the connection)]
pi3r has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-16.09: https://git.io/v1Ig6
<NixOS_GitHub> nixpkgs/release-16.09 f1cab34 Vladimír Čunát: guile: doCheck = false on i686-linux...
blahdodo has joined #nixos
pi3r has quit [(Read error: Connection reset by peer)]
pi3r2 has joined #nixos
AppAraat has quit [(Ping timeout: 265 seconds)]
Itkovian has joined #nixos
amarsman has quit [(Ping timeout: 268 seconds)]
<NixOS_GitHub> [nixpkgs] aszlig pushed 1 new commit to master: https://git.io/v1I2e
<NixOS_GitHub> nixpkgs/master 83410d9 aszlig: beets: 1.3.19 -> 1.4.1...
Kingsquee has quit [(Excess Flood)]
Kingsquee has joined #nixos
ugjka has quit [(Remote host closed the connection)]
zraexy has quit [(Ping timeout: 260 seconds)]
pi3r2 has quit [(Ping timeout: 248 seconds)]
lonokhov has joined #nixos
matthewbauer has joined #nixos
AppAraat has joined #nixos
matthewbauer has quit [(Ping timeout: 250 seconds)]
<ronny> hmm
Wizek has quit [(Ping timeout: 256 seconds)]
Wizek_ has quit [(Ping timeout: 252 seconds)]
xadi has joined #nixos
johann__ has quit [(Quit: Leaving.)]
xadi has quit [(Client Quit)]
xadi has joined #nixos
pi3r has joined #nixos
derjohn_mob has quit [(Ping timeout: 250 seconds)]
AppAraat has quit [(Ping timeout: 260 seconds)]
Wizek has joined #nixos
Wizek_ has joined #nixos
takle has quit [(Remote host closed the connection)]
AppAraat has joined #nixos
johann__ has joined #nixos
copumpkin has joined #nixos
Guest2999 has joined #nixos
johann__ has quit [(Quit: Leaving.)]
xadi has quit [(Quit: Leaving.)]
xadi has joined #nixos
xadi has quit [(Client Quit)]
xadi has joined #nixos
zagy has joined #nixos
FRidh has joined #nixos
AppAraat has quit [(Ping timeout: 245 seconds)]
rardiol has quit [(Ping timeout: 240 seconds)]
AppAraat has joined #nixos
<FRidh> Has anyone used the nix expression language without using the store?
AppAraat has quit [(Ping timeout: 265 seconds)]
itorres has quit [(Ping timeout: 245 seconds)]
yegods has quit [(Remote host closed the connection)]
<FRidh> I would like to use its language to describe package sets and evaluate the expressions to json
spacekitteh has quit [(Ping timeout: 265 seconds)]
spacekitteh has joined #nixos
ebzzry has joined #nixos
ambro718 has quit [(Ping timeout: 268 seconds)]
RchrdB has quit [(Ping timeout: 248 seconds)]
spacekitteh has quit [(Ping timeout: 246 seconds)]
<NixOS_GitHub> [nixpkgs] lsix opened pull request #20763: Update nagios (master...update_nagios) https://git.io/v1Ir7
newhoggy has joined #nixos
spacekitteh has joined #nixos
matthewbauer has joined #nixos
newhoggy has quit [(Client Quit)]
matthewbauer has quit [(Ping timeout: 258 seconds)]
takle has joined #nixos
<LnL> FRidh: nix-instantiate --eval has a json flag IIRC
<FRidh> LnL: I am aware of that flag. Do you know whether `nix-instantiate` can function if it is not installed in a store?
thc202 has joined #nixos
pi3r has quit [(Ping timeout: 256 seconds)]
goibhniu has joined #nixos
copumpkin has quit [(Quit: My MacBook Pro has gone to sleep. ZZZzzz…)]
matthewbauer has joined #nixos
pi3r has joined #nixos
jensens has joined #nixos
takle has quit [(Ping timeout: 256 seconds)]
matthewbauer has quit [(Ping timeout: 240 seconds)]
<domenkozar> FRidh: so you're wondering about nix installation without the store
<domenkozar> hmm, not sure I've seen that yet
spacekitteh has quit [(Ping timeout: 250 seconds)]
jgertm_ has joined #nixos
<FRidh> domenkozar: exactly
<manveru> FRidh: i think you can use the web version of nix for that
takle has joined #nixos
<manveru> not sure how it does the store, but it's good enough for playing around
spacekitteh has joined #nixos
<FRidh> manveru: good idea, I'll check it out
<FRidh> domenkozar: from the discussion on pipfile and stack, I thought it would be a good idea if we there would be a periodically released curated index with python packages as well
otti has joined #nixos
<NixOS_GitHub> [nixpkgs] mdaiter closed pull request #20628: opencv3: added release option (master...opencv_release) https://git.io/vXpK7
rly has joined #nixos
jgertm_ has quit [(Ping timeout: 246 seconds)]
herzmeister has quit [(Quit: Leaving)]
herzmeister has joined #nixos
herzmeisterderw has joined #nixos
yegods has joined #nixos
amarsman has joined #nixos
jgertm_ has joined #nixos
dgn has quit [(Quit: dgn)]
dgn has joined #nixos
asymmetric has joined #nixos
__Sander__ has joined #nixos
<rsa> hmm... was running octave (nixos 16.09), after using it a while and then leaving it idle I got something about ld inconsistency and the program broke
Guest2999 has quit [(Ping timeout: 245 seconds)]
matthewbauer has joined #nixos
takle_ has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
matthewbauer has quit [(Ping timeout: 246 seconds)]
johann__ has joined #nixos
takle_ has quit [(Ping timeout: 244 seconds)]
<rly> Is hiera packaged as some kind of independent binary in NixOS?
<NixOS_GitHub> [nixpkgs] the-kenny pushed 2 new commits to master: https://git.io/v1ID1
<NixOS_GitHub> nixpkgs/master e36d243 Moritz Ulrich: rustc: Don't fail if deleting of breaking tests fails.
<NixOS_GitHub> nixpkgs/master bfc187f Moritz Ulrich: rustc: Loosen bootstrapping restrictions....
athan has quit [(Ping timeout: 245 seconds)]
takle_ has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
ThatDocsLady has joined #nixos
takle_ has quit [(Ping timeout: 258 seconds)]
Wizek_ has quit [(Ping timeout: 246 seconds)]
Wizek has quit [(Ping timeout: 256 seconds)]
takle has joined #nixos
kier has quit [(Ping timeout: 240 seconds)]
<joncfoo> Is there anything special I need to do in order to have some kernel modules loaded besides specifying them in boot.kernelModules?
proteus-guy has quit [(Ping timeout: 260 seconds)]
rly has quit [(Ping timeout: 245 seconds)]
<kmicu> Not really. Sometimes you need to use ‘boot.initrd.*Modules’ to load them sooner. Sometimes you need to configure kernel to enable ‘exotic’ modules.
<joncfoo> I specified: boot.kernelModules = [ "virtio" "virtio-net" "virtio-blk" ]; in /etc/nixos/configuration.nix and after a `nixos-rebuild switch` and a reboot, `lsmod` did not show the module being loaded
<NixOS_GitHub> [nixpkgs] joachifm pushed 4 new commits to master: https://git.io/v1ISP
<NixOS_GitHub> nixpkgs/master 4c73235 Joachim Fasting: Revert "grsecurity: work around for #20490"...
<NixOS_GitHub> nixpkgs/master 1915f69 Joachim Fasting: linux_grsec_nixos: use the "modinst arg list too long" patch...
<NixOS_GitHub> nixpkgs/master b90ed0c Joachim Fasting: grsecurity: 4.8.10-201611232213 -> 4.8.11-201611271225
<joncfoo> I can load the modules via `modprobe` just fine
takle has quit [(Ping timeout: 265 seconds)]
kier has joined #nixos
<joncfoo> kmicu: do you know if there are any logs I can check to see what's going on?
<joncfoo> dmesg doesn't give me any information
Guest2999 has joined #nixos
iyzsong has joined #nixos
kragniz has quit [(Quit: WeeChat 1.5)]
kragniz has joined #nixos
<clever> Dezgeg: i think i found my boot problems, ARM_APPENDED_DTB is enabled when it shouldnt be
matthewbauer has joined #nixos
<joncfoo> kmicu: I tried specifying the modules in boot.initrd.kernelModules but no luck there either
<clever> joncfoo: i think a systemd unit called systemd-modules-load handles loading boot.kernelModules
takle has joined #nixos
<clever> joncfoo: and its configured via /etc/modules-load.d/nixos.conf which nixos should generate
<clever> joncfoo: is virtio in that file?
Guest2999 has quit [(Ping timeout: 258 seconds)]
matthewbauer has quit [(Ping timeout: 244 seconds)]
<joncfoo> clever: thanks, the logs for that don't show virtio to be in there and /etc/modules-load.d/nixos.conf does not contain it either
<clever> joncfoo: one sec
<clever> ls -l /run/current-system /nix/var/nix/profiles/system*
<clever> joncfoo: can you pastebin the output of this?
<clever> you are currently running from generation 42, and there are 2 new ones, 43&44
<clever> either you selected 42 from grub when booting, or something has glitched out
<clever> is /boot mounted correctly?
<joncfoo> >_> but I picked 44 in grub when I rebooted
<clever> you picked exactly 44?, or just "latest"?
<joncfoo> the last one selected which was 44
[0x4A6F] has quit [(Ping timeout: 256 seconds)]
<joncfoo> /boot/loader/entries has 37-44 in there
<clever> ah, not grub then, but same conditions still apply
<clever> joncfoo: can you pastebin the output of "mount" and "lsblk" ?
[0x4A6F] has joined #nixos
<clever> i dont see anything mounted to /boot
<clever> do you have a dedicated boot partition?
<joncfoo> I do not
<clever> what is sda1, sda2, and sda3?
<NixOS_GitHub> [nixpkgs] joachifm pushed 1 new commit to master: https://git.io/v1IQq
<NixOS_GitHub> nixpkgs/master e99228d Joachim Fasting: grsecurity module: force a known good kernel package set...
<joncfoo> sda1 - windows recovery, sda2 - efi system, sda3 - windows reserved, sda4 - windows
<clever> can you mount sda2 to /mnt and run "find /mnt" and pastebin that output?
echo-area has quit [(Remote host closed the connection)]
frankpf has joined #nixos
<joncfoo> clever: so it seems that I must have selected 42 since the output of /mnt only contains entries up to 42 - http://sprunge.us/LaIE
<joncfoo> not 43 or 44
<clever> yeah, so you need to mount sda2 to /boot
<clever> you have been updating the entries file on the rootfs, not the one the bootloader used
<joncfoo> oh, I wonder what happened there
<clever> this happens every now and then with nixos users, /boot gets removed from configuration.nix by mistake
<clever> and from then on, it always rolls back to the last config that made it into /boot, on every restart
<joncfoo> hooo boy
<joncfoo> I would not have figured that out easily
<clever> one person garbage-collected that generation, and then it lost the ability to boot :P
<joncfoo> thanks for your help!
<joncfoo> is there a bug filed for this issue?
<clever> its more of a user config problem then a bug in nixos
<joncfoo> oh, I think I see what might have caused the issue
<joncfoo> I had enabled kvm which is what re-wrote /etc/nixos/hardware-configuration.nix
<joncfoo> ^I'm guessing since I don't remember seeing the kvm-intel module in that file before
<clever> normaly, you can re-run nixos-generate-config on a running machine, and it will update hardware-configuration.nix to match whatever you currently have mounted
<clever> i tend to just delete the file and manage that manualy in configuration.nix, so i know exactly what is changing
asymmetric has quit [(Ping timeout: 240 seconds)]
<joncfoo> got it
<joncfoo> thanks a lot for your help clever. really - I doubt I would have figured this out on my own
<joncfoo> brb, reboot to test =]
frankpf has quit [(Quit: Leaving)]
dgn has quit [(Ping timeout: 265 seconds)]
<avn> Folks, do we have some common rules to handle stuff like bash completions? (some "standard" path for example)
<joncfoo> happy to report that it works now - the kernel modules are properly loaded, /boot is mounted, and the generations are correct
johann__ has quit [(Quit: Leaving.)]
frankpf_ has joined #nixos
frankpf_ has quit [(Client Quit)]
ixxie has joined #nixos
madbub has joined #nixos
newhoggy has joined #nixos
akaWolf has quit [(Ping timeout: 258 seconds)]
<NixOS_GitHub> [nixpkgs] grahamc pushed 2 new commits to release-16.09: https://git.io/v1I5b
<NixOS_GitHub> nixpkgs/release-16.09 6034390 Sebastian Hagen: rogue: Add alternative source archive URLs....
<NixOS_GitHub> nixpkgs/release-16.09 721f2b9 Graham Christensen: Merge pull request #20761 from sh01/cp_rogue_mirror...
newhoggy_ has joined #nixos
spacekitteh has quit [(Ping timeout: 250 seconds)]
herzmeisterderw has quit [(Quit: Leaving)]
spacekitteh has joined #nixos
newhoggy has quit [()]
newhoggy_ is now known as newhoggy
pi3r has quit [(Ping timeout: 248 seconds)]
newhoggy_ has joined #nixos
newhoggy_ is now known as newhoggy2
newhoggy2 has quit [(Client Quit)]
newhoggy_ has joined #nixos
newhoggy_ has quit [(Client Quit)]
newhoggy2 has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to master: https://git.io/v1Id8
<NixOS_GitHub> nixpkgs/master 41ed3a8 Vincent Demeester: lnav: fix compilation...
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #20685: Fix lnav-0.8.0 compilation. (master...fix-lnav-compilation) https://git.io/v1fr9
yegods has quit [(Read error: Connection reset by peer)]
asymmetric has joined #nixos
spacekitteh has quit [(Ping timeout: 250 seconds)]
spacekitteh has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 2 new commits to master: https://git.io/v1Idw
<NixOS_GitHub> nixpkgs/master bd57e32 Matthew Bauer: file_cmds: init at 264.1.1
<NixOS_GitHub> nixpkgs/master 04edf29 Graham Christensen: Merge pull request #20676 from matthewbauer/file_cmds...
akaWolf has joined #nixos
<NixOS_GitHub> [nixpkgs] avnik opened pull request #20766: lxc: 2.0.4 -> 2.0.6 (security) (master...update/lxc) https://git.io/v1Idh
newhoggy2 has quit [(Remote host closed the connection)]
Guest2999 has joined #nixos
newhoggy2 has joined #nixos
matthewbauer has joined #nixos
newhoggy2 has quit [(Remote host closed the connection)]
newhoggy2 has joined #nixos
newhoggy2 has quit [(Remote host closed the connection)]
newhoggy2 has joined #nixos
newhoggy2 has quit [(Remote host closed the connection)]
<NixOS_GitHub> [nixpkgs] abbradar opened pull request #20767: releaseTools.debBuild: split checkinstall into separate phase (master...debbuild) https://git.io/v1IFc
pi3r has joined #nixos
spacekit1eh has joined #nixos
spacekitteh has quit [(Ping timeout: 268 seconds)]
ixxie has quit [(Ping timeout: 245 seconds)]
matthewbauer has quit [(Ping timeout: 260 seconds)]
ixxie has joined #nixos
ebzzry has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub> [nix] abbradar opened pull request #1141: Improve RPM and DEB packages for multi-user Nix (master...stable) https://git.io/v1IFb
spacekitteh has joined #nixos
spacekit1eh has quit [(Ping timeout: 252 seconds)]
ebzzry has joined #nixos
<ToxicFrog> Hrm
<ToxicFrog> patchelf has --set-rpath but doesn't seem to have --set-runpath
<ToxicFrog> Aggravating
Shou has joined #nixos
herzmeister has quit [(Quit: Leaving)]
spacekitteh has quit [(Ping timeout: 252 seconds)]
spacekitteh has joined #nixos
angerman has quit [(Quit: Gone)]
griff_ has quit [(Quit: griff_)]
madbub has quit [(Ping timeout: 258 seconds)]
<__Sander__> hmm so fetchgit's behaviour has changed again
<NixOS_GitHub> [nixpkgs] DamienCassou closed pull request #19152: Emacs all the icons fonts (release-16.09...emacs-all-the-icons-fonts) https://git.io/vPqzU
<__Sander__> with regards to the default branch name
<__Sander__> guess I again have to modify node2nix for that
<rui> MichaelRaskin I am trying setting LD_LIBRARY_PATH but something is not that straightforward
<rui> For example, I added nettle../lib to the LD_LIBRARY_PATH but when installing Pkg.build("IJulia"), which needs Pkg.build("nettle"), it seems it still tries to install itself and fails
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #20689: flow: 0.34.0 -> 0.36.0 (master...flow-34-36) https://git.io/v1JvT
rly has joined #nixos
zombified_ has quit [(Ping timeout: 244 seconds)]
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #5529: Add: XAPI (or Xenserver or XCP) + dependencies (master...xapi) https://git.io/0AlOoA
RchrdB has joined #nixos
spacekitteh has quit [(Ping timeout: 245 seconds)]
spacekitteh has joined #nixos
matthewbauer has joined #nixos
ixxie has quit [(Remote host closed the connection)]
matthewbauer has quit [(Ping timeout: 252 seconds)]
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 1 new commit to master: https://git.io/v1IhG
<NixOS_GitHub> nixpkgs/master c93ec7b Michael Raskin: bftpd: init at 4.4
ebzzry has quit [(Ping timeout: 265 seconds)]
stepcut has quit [(Remote host closed the connection)]
stepcut has joined #nixos
cpennington has joined #nixos
spacekitteh has quit [(Ping timeout: 244 seconds)]
stepcut has quit [(Ping timeout: 244 seconds)]
msd has joined #nixos
civodul has joined #nixos
spacekitteh has joined #nixos
<msd> viric_: could you please merge this: https://github.com/NixOS/nixpkgs/pull/20631 <- I don't have write access, but FRidh seems to concur that this patch seems suitable to fix the current state of OpenCV 3 GPU support
<viric_> can't FRidh merge it?
<viric_> bjornfor can merge it too
<viric_> I merge it - it doesn't look harmful
<NixOS_GitHub> [nixpkgs] viric closed pull request #20631: opencv3: added CUDA 8.0 specific patches (master...opencv_upgrade) https://git.io/vXhYv
<gchristensen> woohoo! we're below 280 PRs!
<msd> viric_: okay, I'll reach out to bjornfor. Just tried messaging FRidh over GitHub requesting he (or anyone with write access) merge it. I was just trying to contact someone with write access to merge this in after FRidh's signoff.
<msd> viric_: thanks so much!
<msd> viric_: also, would you approve of me co-maintaining the OpenCV 3 package with you and flosse?
<gchristensen> can't hurt!
<viric_> msd: sure, make a PR for it
NEo4v8_ has quit [(Ping timeout: 265 seconds)]
<msd> viric_: thank you!
Kingsquee has quit [(Quit: https://i.imgur.com/qicT3GK.gif)]
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to master: https://git.io/v1Le5
<NixOS_GitHub> nixpkgs/master 70c18b5 Tim Nieradzik: rxvt_unicode: create .desktop file
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #20347: rxvt_unicode: create .desktop file (master...urxvt-desktop) https://git.io/vXo8M
<gchristensen> fpletz: ping me when you're around :)
<viric_> let me handle you the Oath of NixOS...
derjohn_mob has joined #nixos
<NixOS_GitHub> [nixpkgs] viric pushed 2 new commits to master: https://git.io/v1LvY
<NixOS_GitHub> nixpkgs/master 448d605 Matthew Daiter: opencv3: adding myself as co-maintainer
<NixOS_GitHub> nixpkgs/master 1f7a23c viric: Merge pull request #20768 from mdaiter/opencv_maintainer...
<gchristensen> "I will sometimes faithfully and promptly reply to PR comments that tag me"
yegods has joined #nixos
Shou has quit [(Ping timeout: 250 seconds)]
<viric_> I swear.
angerman has joined #nixos
<msd> I swear.
<msd> Lol
<msd> Thanks viric_
<viric_> Now You are one of Us
<taktoa> does texdoc work with the new(ish) nix texlive infrastructure
dgn has joined #nixos
<kmicu> Yes.
<rly> gchristensen: do you use Terraform?
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #20749: genymotion: 2.7.2 -> 2.8.0 and add menu item (master...master3) https://git.io/v1kwT
<gchristensen> I used to, rly
<taktoa> kmicu: when I run, e.g.: `texdoc amsmath` it complains even though I have `texlive.combine { inherit (pkgs.texlive) scheme-full lm tipa; }` installed to my user profile
<rly> gchristensen: can I ask you a few short questions about it via a private message?
<gchristensen> peti: will you be merging and backporting the lxc patch?
asymmetric has quit [(Ping timeout: 250 seconds)]
<gchristensen> rly: sure
<taktoa> but it's not clear to me what pkgFilter does and it's never referenced in https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/typesetting/tex/texlive/default.nix (thought I might just have the wrong file)
Shou has joined #nixos
<taktoa> I was looking at that earlier but that was before I saw the issue
<taktoa> okay, this makes sense now. maybe I should cook up a PR adding direct instructions to those docs, describing why texdoc doesn't work out of the box and how to fix it
katyucha has quit [(Quit: Lost terminal)]
lonokhov has quit [(Quit: leaving)]
<kmicu> Anything that makes “By default you only get executables and files needed during runtime, and a little documentation for the core packages. To change that, you need to add pkgFilter function to combine.” more clear is welcome.
matthewbauer has joined #nixos
takle has quit [(Remote host closed the connection)]
<FRidh> kmicu: ah latex docs. Yes, those are brief.
matthewbauer has quit [(Ping timeout: 250 seconds)]
<taktoa> kmicu: weird, I'm getting "stack overflow (possible infinite recursion)" any time I refer to `pkg.tlType` in the `pkgFilter` predicate (where `pkg` is the variable name)
<taktoa> referring to `pkg.pname` does not have the same effect, interestingly
<vdemeester> hum something is weird on nixpkgs master : error: assertion failed at /home/vincent/src/nix/nixpkgs/pkgs/top-level/all-packages.nix:5908:19
<kmicu> taktoa: Did you define ‘pkgFilter’ as a lambda inside combine function? ‘pkgFilter = pkg: …’
<vdemeester> is it only happening to me ? (when I try to build manually a package)
<NixOS_GitHub> [nixpkgs] aycanirican opened pull request #20769: hydra-module: add cfg.package to hydra-evaluator path (master...master) https://git.io/v1LUS
<taktoa> kmicu: yes
<taktoa> and I tried varying the lambda parameter name just in case Nix has weird name shadowing rules (IIRC `with`, for instance, has weird rules)
<kmicu> taktoa: the same issue with ‘nix-shell --pure -p '(texlive.combine { inherit (texlive) scheme-basic pdftex; pkgFilter = pkg: pkg.tlType == "run" || pkg.tlType == "bin" || pkg.pname == "cm-super"; })'’?
katyucha has joined #nixos
<taktoa> nope, that evaluates successfully
<taktoa> very strange
* kmicu peepers for “‘with’ considered harmful joke”.
<taktoa> :^)
newhoggy2 has joined #nixos
<taktoa> I actually kind of like `with` (or at least the concept of `with`; I do think the scoping should be fixed to be more intuitive)
<taktoa> in particular I often use `with rec { ... };` instead of `let` because it reads a bit nicer
<taktoa> the `let` syntax is a bit heavyweight in comparison
<gchristensen> vdemeester: are you trying to do cross-compilation?
cfricke has joined #nixos
<taktoa> kmicu: so, it seems that if I ever let `pkgFilter x == true` when `x.tlType == "doc"`, the infinite recursion is triggered
<taktoa> this is also true of "source"
<taktoa> but not of "run" or "bin"
sdothum has joined #nixos
asymmetric has joined #nixos
nh2_ has joined #nixos
proteus-guy has joined #nixos
Ivanych has quit [(Ping timeout: 246 seconds)]
<vdemeester> gchristensen: nope
<vdemeester> just nix-build default.nix -A google-chrome
<vdemeester> (more or less)
<vdemeester> might be something wrong in my setup maybe ?
<kmicu> vdemeester: iirc you Nix is too old. What’s your nix-env --version?
<peti> gchristensen: Yes, I'll merge lxc in a minute. I just want to build it locally, too, to make sure the patch works.
<vdemeester> oohh
<vdemeester> my nixos system is 16.09
fritschy has quit [(Quit: Leaving.)]
<kmicu> Sometimes, by mistake, you can have an old Nix version on NixOS. Check ‘nix-env --version’ or ‘nix-shell --version’.
<gchristensen> peti: :thumbsup: thank you
<vdemeester> kmicu: 1.11.4
Shou has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub> [nixpkgs] peti closed pull request #20766: lxc: 2.0.4 -> 2.0.6 (security) (master...update/lxc) https://git.io/v1Idh
<kmicu> vdemeester: I’m sorry. I can reproduce your issue (even with Nix 1.12pre).
<vdemeester> kmicu: ok so it's not just me :)
<vdemeester> kmicu: don't be sorry :P
Shou has joined #nixos
<kmicu> ‘NIXPKGS_ALLOW_BROKEN=1 NIXPKGS_ALLOW_UNFREE=1 nix-build default.nix -A google-chrome’ on master gives the same message ‘error: assertion failed at …/pkgs/top-level/all-packages.nix:5900:19’.
<NixOS_GitHub> [nixpkgs] peti pushed 2 new commits to release-16.09: https://git.io/v1LIl
<NixOS_GitHub> nixpkgs/release-16.09 d35e2de Alexander V. Nikolaev: lxc: 2.0.4 -> 2.0.6 (security)...
<NixOS_GitHub> nixpkgs/release-16.09 3e8dc13 Alexander V. Nikolaev: lxc: fix sandbox builds...
<gchristensen> !m peti
<[0__0]> You're doing good work, peti!
<gchristensen> thank you
cfricke has quit [(Quit: WeeChat 1.6)]
<vdemeester> kmicu: yep that's the one
<vdemeester> (but it's for any package really)
Guest19059 has quit [(Remote host closed the connection)]
<kmicu> Oh my…
tomb has joined #nixos
FRidh has quit [(Remote host closed the connection)]
<kmicu> You have the NON-BREAKING SPACE between ‘-A’ and a package name. It results in the error message, b/c as we all know, unityped Nix expression language gives very helpful error messages⸮ ( ͡~ ͜ʖ ͡°)
lverns has joined #nixos
takle has joined #nixos
<kmicu> vdemeester: try ‘NIXPKGS_ALLOW_UNFREE=1 nix-build default.nix -A google-chrome’ 😺
<vdemeester> error: Package ‘Agda-Sheaves-8a06162a8f0f7df308458db91d720cf8f7345d69’ in ‘/home/vincent/src/nix/nixpkgs/pkgs/development/libraries/agda/Agda-Sheaves/default.nix:18’ is marked as broken, refusing to evaluate.
<vdemeester> kmicu: ^^
<kmicu> NIXPKGS_ALLOW_BROKEN=1
<vdemeester> oh it's working
<kmicu> :)
<vdemeester> hum.. why wouldn't it work just before… that's weird :[
<vdemeester> I messed something up ?
estewei has joined #nixos
<kmicu> NON-BREAKING SPACE issue ‘NIXPKGS_ALLOW_BROKEN=1 NIXPKGS_ALLOW_UNFREE=1 nix-build default.nix -A google-chrome’
<kmicu> Here is SPACE → ‘ ‘ and here is NON-BREAKING SPACE → ‘ ‘
<vdemeester> oh crap
<vdemeester> ok I see :'D
<kmicu> If you put the latter one between ‘-A’ and ‘google-chrome’ then it results in ‘useful’ error message.
<vdemeester> I tend to… insert non-breaking space easily :D
<vdemeester> damn me :P
matthewbauer has joined #nixos
* kmicu sees them in his Emacs buffer. He sees dead peopl… unicode symbols.
<NixOS_GitHub> [nixpkgs] mguentner opened pull request #20770: services: IPFS: add test and more config parameters (master...more_ipfs) https://git.io/v1Lmn
<gchristensen> kmicu++
<vdemeester> kmicu: yep I see them in my emacs too, but not in my terminal.. should really use eshell for everything :D
<vdemeester> ok I have another weird question I guess
<kmicu> There is that ‘Replace a semicolon (;) with a greek question mark (;) in your friend's JavaScript and watch them pull their hair out over the syntax error. this might be more evil than using the Ukrainian lowercase і in 'thіs'’ now we have Nix flavor.
<vdemeester> :D
zombified has joined #nixos
<vdemeester> so I have "nixpkgs https://nixos.org/channels/nixpkgs-unstable"
matthewbauer has quit [(Ping timeout: 256 seconds)]
<vdemeester> as one of my nix-channel (as user)
<vdemeester> I install nixpkgs.google-chrome (so stable version)
<vdemeester> if I then do a nix-env -u --dry-run
<vdemeester> it wants to update to google-chrome-56.0.2906.0 (which is nixpkgs.google-chrome-dev)
<vdemeester> and I don't want to lol xD
Rotaerk has quit [(Quit: Leaving)]
<vdemeester> I just want to stay on the *stable* channel
<vdemeester> but did not find an easy way to… pin it somehow :/
<clever> vdemeester: i prefer using a buildEnv, for package management
proteus-guy has quit [(Ping timeout: 252 seconds)]
<vdemeester> clever: hum, what do you mean ? (still a little bit new in the nix world :P )
<clever> vdemeester: http://pastebin.com/waUNDPYw in ~/.nixpkgs/config.nix
<clever> nix-env -iA nixos.mystuff will install(or upgrade) all of my stuff
<clever> it uses attribute paths, so it wont switch to the dev version on its own
<vdemeester> oh :)
<vdemeester> nice !
<vdemeester> clever: <3
<clever> and it lets you atomicly modify the list of packages
<clever> and manage the whole list in git
<vdemeester> yep that sound really good O:)
tomb has quit [(Ping timeout: 250 seconds)]
asymmetric has quit [(Ping timeout: 265 seconds)]
<NixOS_GitHub> [nixpkgs] domenkozar closed pull request #20769: hydra-module: add cfg.package to hydra-evaluator path (master...master) https://git.io/v1LUS
<avn> can we use something like "__nix_qt5_build" instead $(mktemp -d)?
<kmicu> Also second section on the zombie wiki https://nixos.org/wiki/Howto_keep_multiple_packages_up_to_date_at_once
<avn> qknight: ^^ you looks to be one of maintainers ;)
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #18553: dell 2155cn/cdn driver: init at 1.0-1 (master...dell) https://git.io/vigtM
<gchristensen> 30 PRs closed since yesterday night
<vdemeester> nice :)
<avn> gchristensen: do you have opition about qt' setup-hook.sh, and mktemp in it?
mkoenig has joined #nixos
<gchristensen> `mktemp` isn't impure, but it isn't reproducible
<avn> correct.
<avn> but anyway it wrong here I think
<avn> something like __nix_qt5__ should works here I think.
<gchristensen> (well it is impure in that it isn't reproducible, but I'm using "impure" to mean "doesn't refer to thing nix usually doesn't let you refer to") that SGTM but I don't know any of the implications of that
<kmicu> taktoa: did you solve the mystery? FWIW ‘nix-shell --pure -p '(texlive.combine {inherit (texlive) scheme-minimal texdoc luatex amsmath; pkgFilter = pkg: pkg.tlType == "run" || pkg.tlType == "bin" || pkg.tlType == "doc";})' --command 'texdoc amsmath'’ gives me amsmath’s documentation. You can also replace ‘pkg.tlType == "doc"’ with ‘pkg.pname == "amsmath"’ if you only want docs for that one
<kmicu> package.
<taktoa> the issue is scheme-full
<taktoa> it seems to be too big for nix to handle, somehow
<kmicu> Ahh, I always avoid scheme-full so I did not test it. :)
<avn> gchristensen: I would like to make PR ;)
<gchristensen> avn: please do, I can't merge it (I don't know that stuff) but I would like to see that
<avn> gchristensen: to master or to staging? (idk if this rebuild considered "mass" or not)
<gchristensen> put the PR in to master, ttuegel will have opinions on that
rardiol has joined #nixos
glines has joined #nixos
<NixOS_GitHub> [nixpkgs] vdemeester opened pull request #20771: idea-ultimate: 2016.2.2 -> 2016.2.5 (release-16.09...idea-2016_2_5) https://git.io/v1Lse
NEo4v8_ has joined #nixos
<NixOS_GitHub> [nixpkgs] edolstra pushed 1 new commit to release-16.09: https://git.io/v1Lsi
<NixOS_GitHub> nixpkgs/release-16.09 fc711b5 Eelco Dolstra: Revert "firefox: 49.0.2 -> 50.0"...
<gchristensen> vdemeester: will get back to you on that issue.
Lowl3v3l has quit [(Remote host closed the connection)]
Mercuria1Alchemi has quit [(Ping timeout: 265 seconds)]
earldouglas has joined #nixos
NEo4v8_ has quit [(Ping timeout: 250 seconds)]
erasmas has joined #nixos
<earldouglas> Is there a way to disable unpacking when using fetchurl?
Ivanych has joined #nixos
<clever> earldouglas: fetchurl doesnt unpack by default
<clever> earldouglas: but stdenv will unpack whatever you put into $src
zagy has quit [(Quit: Leaving.)]
<earldouglas> Ah, that explains why I couldn't find it in fetchurl's nix expression.
<earldouglas> Can I tell stdenv not to unpack $src?
<clever> earldouglas: what are you trying to do?
<earldouglas> src = fetchurl { url = "http://.../Foo.hs"; ... }
<earldouglas> No need to gunzip that src.
<clever> ah
<clever> i would just not even use src, or mkDerivation
gilligan_ has joined #nixos
<clever> earldouglas: and you can put that fetchurl into a let block, then refer to it in line 7
<earldouglas> Oh, that sounds like it would do the trick.
<earldouglas> Thanks a lot.
<vdemeester> gchristensen: ok :)
<clever> earldouglas: http://pastebin.com/fAj9R2ku like this
<clever> earldouglas: its still called src, but it is not a src attribute inside mkDerivation, so stdenv wont do anything with it
<clever> earldouglas: and the default builder isnt involved, so it couldnt even if it was an attr
<mbrgm> hey! how can I remove obsolete nodes from a nixops deployment?
yodeler has joined #nixos
yodeler has quit [(Changing host)]
yodeler has joined #nixos
jgertm_ has quit [(Ping timeout: 260 seconds)]
mkoenig has quit [(Ping timeout: 245 seconds)]
Wizek has joined #nixos
Wizek_ has joined #nixos
<earldouglas> clever: That works like a charm; thanks again!
jacob_ has joined #nixos
jacob_ is now known as Guest78382
mkoenig has joined #nixos
<taktoa> nix should have proper unicode escape sequences (e.g.: "\u0004\u1F123" should be valid)
<taktoa> the only real issue with them is that you can abuse them to get color on the command line
<taktoa> (although IMO that's a feature, not a bug :))
eacameron has joined #nixos
<clever> taktoa: non-printing characters are in this line: https://github.com/cleverca22/not-os/blob/master/stage-1.nix#L11
<taktoa> oh, great. so you *can* have unicode in nix strings, you just can't escape it!?!
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/v1Lcq
<NixOS_GitHub> nixpkgs/master 9553928 Michał Pałka: xen service: fix iptables race condition in xen-bridge.service...
<NixOS_GitHub> nixpkgs/master 944868d Joachim F: Merge pull request #19851 from michalpalka/xen-fix-xen-bridge...
matthewbauer has joined #nixos
<clever> taktoa: this one is just the ansii color code escape, but it probably allows all of unicode
<taktoa> yeah
stepcut has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #19900: xen service: fix wrong netmask handed out by xen-bridge.service (master...xen-fix-xen-bridge2) https://git.io/vXv80
<taktoa> unless nix uses UTF-16 strings, which have some issues
<taktoa> but probably nix uses plain old std::string which is UTF-8 afaik
kbwt has joined #nixos
systemfault has joined #nixos
angerman has quit [(Quit: Gone)]
JonReed has joined #nixos
<kbwt> I come from a distro (gentoo) that requires users to manually resolve feature dependencies (in the form of use flags), where the package manager often takes 5-10 minutes to resolve basic version dependencies for an upgrade, and everything is generally a mess. I have some questions...
<kbwt> does nix have "conflicts" between packages (or versions of packages?), or can everything in theory be installed at once?
katyucha has quit [(Quit: leaving)]
<kbwt> does the nix package manager attempt to solve NP-complete problems?
proteus-guy has joined #nixos
matthewbauer has quit [(Ping timeout: 256 seconds)]
<clever> kbwt: nix solves most issues, by not really installing things in the traditional way, every version of every package gets a unique --prefix
<clever> and different versions with different build config also get unique prefixes
derjohn_mob has quit [(Ping timeout: 248 seconds)]
<kbwt> clever: do you know if the dependency resolution done by nix is "polynomial time"?
systemfault has quit [(Quit: Bye!)]
<clever> kbwt: all dependencies are resolved by evaluating the nix expressions, which is much faster on nix then on gentoo
<kbwt> clever: afaik if multiple versions of any package can be installed side-by-side and there is no concept of "conflicts" that the package manager has to solve, it would simply be a matter of doing a topological sort/BFS.
<NixOS_GitHub> [nixpkgs] edolstra pushed 1 new commit to master: https://git.io/v1LC8
<NixOS_GitHub> nixpkgs/master b60873e Eelco Dolstra: aws-sdk-cpp: 0.10.6 -> 1.0.34
<Phlogistique> kbwt: there is no dependency resolution in the traditional sense
<kbwt> Phlogistique: Awesome. That sounds great, I'll definitely give NixOS a try then. :)
<Phlogistique> The best way to "get" Nix is to read "Lethalman"'s Nix pills
<kbwt> Phlogistique: Do you happen to know if this is unique to nix or are there other distros/package managers that work this way?
<Phlogistique> there is Guix, which is inspired by Nix
<JonReed> kbwt: There are no conflicts. You can have as many versions as you like. You can think of dependencies as a lazy immutable list. packageDeps = [dep a, dep b]. When you install package then "dep a" and "dep b" will be evaluated. If they are already installed, then evaluation means just returning the value, i.e., location of already installed depende
<JonReed> ncy.
mkoenig has quit [(Read error: Connection reset by peer)]
<JonReed> dep a and dep b can have their own dependency, forming a dependency tree.
<kbwt> JonReed: yeah, okay, that sounds essentially like a simple BFS (for the procedural/mutable/non-functional people like me :))
<clever> kbwt: and unlike other distros, you can depend on a&b, without a&b being "installed" globaly, so nothing else will be able to use a&b, enless they also depend on it directly
<clever> kbwt: and they will always get the version the ask for
stepcut_ has joined #nixos
danharaj has joined #nixos
stepcut has quit [(Ping timeout: 244 seconds)]
jmeredith has joined #nixos
mkoenig has joined #nixos
stepcut_ has quit [(Remote host closed the connection)]
stepcut has joined #nixos
<JonReed> So, I want to install a script should be run with python2 the script has the shebang "#!/usr/bin/env python". What would be the easiest way to do it? Do I need to somehow replace the shebang for nix/store location of python2?
<gchristensen> vdemeester: I think what I'd somewhat prefer is upgrading master to the latest, and backporting all the interim patches from master to 16.09
<JonReed> Do I just wrap it and call "python2 ${myscript}"?
zagy has joined #nixos
<clever> JonReed: use #!${pkgs.python2}/bin/python
<JonReed> It seems to be something that there would be helper for
<clever> JonReed: if it already has #!/usr/bin/python, you can use patchShebangs
<clever> JonReed: which will search $PATH at build time (put python2 into buildInputs)
<JonReed> clever: Yeah, but script getting downloaded.
<clever> JonReed: make a nix package for it that will download and patch it
<JonReed> clever: Ok. patchShebangs sounds like it
glines has quit [(Ping timeout: 252 seconds)]
asymmetric has joined #nixos
lverns has quit [(Ping timeout: 245 seconds)]
rly has quit [(Ping timeout: 260 seconds)]
magnetophon has joined #nixos
kbwt has quit [(Quit: Page closed)]
rly has joined #nixos
dju has joined #nixos
Bane^ has joined #nixos
grisher has joined #nixos
<NixOS_GitHub> [nixpkgs] nico202 opened pull request #20772: yarp: 2.3.66.1 -> 2.3.68 (master...yarp) https://git.io/v1L4G
Wizek_ has quit [(Ping timeout: 248 seconds)]
alunduil has joined #nixos
<magnetophon> There seems to be a bug in the memtest of NixOS: when I run it (either from usb or from grub), it starts giving errors once it arrives at 53%, on 3 different PC,s with 5 different ram sticks. When I run memtest86+ 5.01 (same version as nixos) from an arch install usb, all is fine.
Wizek has quit [(Ping timeout: 256 seconds)]
ragge has joined #nixos
sdemos has joined #nixos
zagy has quit [(Quit: Leaving.)]
pi3r has quit [(Ping timeout: 258 seconds)]
gilligan_ has quit [(Quit: Leaving)]
glines has joined #nixos
mkoenig has quit [(Ping timeout: 248 seconds)]
mkoenig has joined #nixos
<vdemeester> gchristensen: right, but on master the package is already up-to-date but a new (major/minor version kinda — jetbrains versionning)
<gchristensen> ahh I see
<gchristensen> got it
<LnL> ikwildrpepper: niksnut: I think the macs are still down
rardiol has quit [(Ping timeout: 256 seconds)]
matthewbauer has joined #nixos
mkoenig has quit [(Read error: Connection reset by peer)]
mkoenig has joined #nixos
matthewbauer has quit [(Ping timeout: 260 seconds)]
<JonReed> clever: patchShebangs for some reason does nothing. default.nix: http://lpaste.net/6982042825156198400 script with shebang: http://www.home.unix-ag.org/simon/woof
<JonReed> should it work for "#!/usr/bin/env python"?
justan0theruser has quit [(Ping timeout: 245 seconds)]
civodul has quit [(Remote host closed the connection)]
<clever> JonReed: one minor detail, patchShebangs needs a directory, not a file
<clever> it will patch everything in that dir
<JonReed> clever: I don't think it was working with dir either, but I'll try
<LnL> I'm not sure if that's patched, since it would use the python from PATH
<clever> 2016-11-28 11:53:01 < clever> JonReed: which will search $PATH at build time (put python2 into buildInputs)
<clever> ah, it is in buildInputs
<clever> JonReed: ah, it does specialy handle env correctly
<clever> JonReed: can you pastebin the resulting output after it built?
Sonarpulse-Work has joined #nixos
<JonReed> clever: It's just the same script, unaltered
<JonReed> clever: directory also does not work
<nh2_> my nix-collect-garbage --help claims there's a --print-live option, but when I try that it says "unrecognised option". Does this option (still) exist?
<clever> JonReed: and you ran it on $out/bin ?
<clever> nh2_: its an option on nix-store, the man page is wrong
<JonReed> clever: Yes
<JonReed> clever: It did not echo anything though, so that's a bit worrisome.
<LnL> nh2_: nix-store --gc --print-live
<LnL> is this something that recently got into the manpage?
<clever> JonReed: try it with runCommandCC maybe?
<nh2_> clever LnL: thanks
Wizek_ has joined #nixos
Wizek has joined #nixos
<nh2_> is there a way of running sandboxed builds without running nix as root?
<clever> nh2_: run nix-daemon as root, and export NIX_REMOTE=daemon
greymalkin has joined #nixos
<clever> then the daemon will do all the root tasks for your non-root users
<nh2_> clever: sorry, I meant "without running any part of nix as root"
<nh2_> e.g. when you don't have root
<clever> dont think there is any way
<clever> it needs root to do a lot of the sandbox stuff
<JonReed> clever: Stupid question... where is runCommandCC, I can find its source, but not location: https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/trivial-builders.nix
<clever> JonReed: it should be in pkgs.runCommandCC, but maybe your channel doesnt have it yet
<clever> JonReed: if its missing, then runCommand is the one with gcc
<JonReed> clever: Yeah. It's missing
<clever> JonReed: only other thing i can think of then is substituteInPlace
<clever> JonReed: substituteInPlace $pkg "/usr/bin/env python" ${python2}/bin/python
systemfault has joined #nixos
FRidh has joined #nixos
<JonReed> clever: Ok, thanks. I'll use it.
<nh2_> clever: I'm trying what you suggested, seems to work
<clever> nh2_: this is a nix file i wrote that shows the process namespaces working: https://github.com/cleverca22/nix-tests/blob/master/bare-env.nix
<FRidh> my kde application launcher hasn't updated the entry for google-chrome-stable. Any clue why it hasn't happened?
<clever> nh2_: you can see the expected output in the txt file by the same name
glines has quit [(Ping timeout: 260 seconds)]
matthewbauer has joined #nixos
mkoenig has quit [(Read error: Connection reset by peer)]
<nh2_> clever: cool, seems to work, I get such output
<clever> nh2_: even without root?
amarsman has quit [(Quit: amarsman)]
rly has quit [(Ping timeout: 250 seconds)]
<clever> nh2_: i have heard that chrome uses the same path to lock its threads down, but i didnt think it could do that much without root
Shell has joined #nixos
matthewbauer has quit [(Ping timeout: 260 seconds)]
rly has joined #nixos
mkoenig has joined #nixos
<nh2_> clever: I'm trying on a machine where I have root where it seems to work, but without root would be better for me if I want reproducibility everywhere
<Shell> hey, does anyone know if qt5.qtwebengine actually works? for me it seems to result in an empty derivation...
<nh2_> clever: I think chrome can do it without root -- at least on my system, I never gave chromium root access at any time
<Shell> same with qt57.qtwebengine
<clever> nh2_: i generaly feel that sandboxes can be used to force impure stuff to break, as an alarm, but once you have make the expression pure, it will build the same with or without
<clever> nh2_: though i have run across an impurity in snmpd, that was tricky to track down
<NixOS_GitHub> [nixpkgs] aherrmann opened pull request #20774: matplotlib: Fix "attribute ‘tkinter’ missing" (master...pr_matplotlib_tkagg) https://git.io/v1LaD
<nh2_> clever: I think it depends on what features are used for sandboxing though; I think that cgroups only work with root (or when systemd does that root-proxying for you), but I've head that seccomp can be used without root
<clever> nh2_: it tries to detect the name of /etc/mtab at compile time, (it varies from distro to distro)
<clever> nh2_: the nix sandboxes lack all variants
<clever> so, it compiles itself to open "unknown" at runtime
zagy has joined #nixos
<gchristensen> clever: that just isn't true, since pure and impure can have different behavior depending on what it can find
zagy has quit [(Client Quit)]
<nh2_> clever: I have a build that fails with --pure but succeeds with sandboxes, it's a haskell based build that builds my Haskell code inside nix-shell; it fails even with pure because the files that are compiled do have state (the environment is pure, but the build itself isn't) and it "remembers" paths in /nix/store that it shouldn't be allowed to access - so my build succeeds only after nix-collect-garbage or with sandboxes
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #20774: matplotlib: Fix "attribute ‘tkinter’ missing" (master...pr_matplotlib_tkagg) https://git.io/v1LaD
<clever> gchristensen: yeah, like the snmp case
<clever> nh2_: sounds like you need a "make clean" rule to delete the state
NEo4v8_ has joined #nixos
rly has quit [(Ping timeout: 252 seconds)]
<nh2_> clever: that would work, but also destroy incremental compilation
<clever> ah
__Sander__ has quit [(Quit: Konversation terminated!)]
bencevans has joined #nixos
newhoggy_ has joined #nixos
newhoggy2 has quit [(Ping timeout: 250 seconds)]
NEo4v8_ has quit [(Ping timeout: 260 seconds)]
<nh2_> clever gchristensen: Can you explain me what methods nix uses for sandboxing currently, and which of them require root? Or is it just a historical artifact that it's needed?
seanz has joined #nixos
Wizek__ has joined #nixos
<clever> nh2_: 1853 is where it starts the sandbox mechanics
Wizek has quit [(Ping timeout: 256 seconds)]
<Shell> ah, yes, qtwebengine is decidedly broken. will fix tomorrow
<clever> nh2_: and more logic at 2166
<nh2_> clever: I don't recall, are bind-mounts restricted to root?
<fpletz> gchristensen: ping :)
<clever> nh2_: dont remember
<clever> nh2_: 2257 will also try to create a new lo interface within the new network namespace
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<clever> nh2_: my gut says chrome uses that, but i havent confirmed if it works without root
<clever> if (pivot_root(".", "real-root") == -1)
<clever> nh2_: and does this work without root? :S
<gchristensen> fpletz: I've been thinking a lot on how to generate notices and things
<nh2_> clever: The comment at https://github.com/NixOS/nix/blob/master/src/libstore/build.cc#L2151 also suggests that the author hasn't found a way yet to drop unwanted groups when not root
<gchristensen> fpletz: thinking about using `git-notes` for storing information about commits: 1. they travel with the repository, 2. you can sign / verify them, 3. they maintain the same history and cryptographic promise of regular git branches, 4. they show up in `git-log`. would you like to read up on `git-notes`, play around a bit with it, and let me know what you think?
<clever> nh2_: ah
<gchristensen> 5. they can be amended without altering the commit, so we could add a security notice to a commit and then take it away, or add a list of CVEs and then add more later if we learn of more
danharaj has quit [(Ping timeout: 250 seconds)]
JonReed has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
cpennington has quit [(Ping timeout: 258 seconds)]
Guest2999 has quit [(Ping timeout: 256 seconds)]
amarsman has joined #nixos
<NixOS_GitHub> [nixpkgs] aherrmann opened pull request #20775: matplotlib: Fix TkAgg (release-16.09...pr_matplotlib_tkagg_stable) https://git.io/v1LKN
danharaj has joined #nixos
cpennington has joined #nixos
gilligan_ has joined #nixos
<gilligan_> evening
paroneayea has joined #nixos
<paroneayea> hiya!
<paroneayea> anyone running a nixos server on rackspace, linode, or anything openstack based?
<paroneayea> I'm trying to figure out what the right method is
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to release-16.09: https://git.io/v1LPZ
<NixOS_GitHub> nixpkgs/release-16.09 4626857 Frederik Rietdijk: matplotlib: fix tk backend on python3
Guest78382 has quit [(Ping timeout: 245 seconds)]
<fpletz> gchristensen: sounds interesting! unfortunately I've to wrap up some things at work this week to take the december off… so next week maybe :)
ambro718 has joined #nixos
jensens has quit [(Ping timeout: 250 seconds)]
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/v1LXe
<NixOS_GitHub> nixpkgs/master b67ae8b Vladimír Čunát: llvmPackages*.lldb: fixup input by disabling libedit...
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-16.09: https://git.io/v1LXU
<NixOS_GitHub> nixpkgs/release-16.09 539356f Vladimír Čunát: llvmPackages*.lldb: fixup input by disabling libedit...
[0x4A6F]1 has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to master: https://git.io/v1LXO
<NixOS_GitHub> nixpkgs/master 5d80456 Franz Pletz: lxc: 2.0.4 -> 2.0.6...
rui2 has joined #nixos
amir has quit [(Ping timeout: 264 seconds)]
rui has quit [(Ping timeout: 250 seconds)]
iyzsong has quit [(Quit: bye.)]
FRidh has quit [(Quit: Konversation terminated!)]
redmq has joined #nixos
dgn has quit [(Ping timeout: 256 seconds)]
<gilligan_> hi fpletz
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to release-16.09: https://git.io/v1L1q
<NixOS_GitHub> nixpkgs/release-16.09 5f79536 Franz Pletz: lxc: 2.0.4 -> 2.0.6...
<kmicu> taktoa: it’s not ‘scheme-full’ problem ‘nix-shell --pure -p '(texlive.combine {inherit (texlive) scheme-full amsmath; pkgFilter = pkg: pkg.tlType == "run" || pkg.tlType == "bin" || pkg.pname == "amsmath";})' --command 'texdoc amsmath'’ also works ( ͡~ ͜ʖ ͡°)
glines has joined #nixos
<fpletz> gilligan_: moin :)
goibhniu has quit [(Ping timeout: 268 seconds)]
<gilligan_> hm.. { pkgs ? import <nixpkgs> {}, configFoo ? '../configsFoo', configBar ? '../configBar' }: pkgs.stdenv.mkDerivation { ... } // if configsFoo and configBar are *directories* how will this work, will it work at all ? it seems like it will rebuild each time I run `nix-build` now so maybe this really doesn't work ..
amarsman has quit [(Ping timeout: 246 seconds)]
kampfschlaefer has joined #nixos
<gilligan_> i mean, what I want is that this derivation should depend on all files in the respective directory. The `src` in my derivation is actually a jenkins war file but I am using those directories during my build phase
takle has quit [(Remote host closed the connection)]
<Biappi> do you know if there is a nix syntax-file for vim?
mg has quit [(Ping timeout: 240 seconds)]
mg has joined #nixos
<Biappi> gilligan_: thank you!!
msd has quit [()]
<LnL> Biappi: there's also some basic support built in, but it's not as good
<Biappi> oh, i don't run the nix vim version, i haven't noticed
pstn_ has joined #nixos
zagy has joined #nixos
<savanni> Hey, everyone. I wrote an article detailing how to build the devops nix-shell that I was using at work. Includes stuff about making derivations of downloadable executables. Beginner-level, but wasn't easy to figure out and so possibly helpful: http://savanni.luminescent-dreams.com/page/nix-developer-environments
magnetophon has quit [(Ping timeout: 240 seconds)]
<Leo`> The manual says “Currently, NixOS containers are not perfectly isolated from the host system. This means that a user with root access to the container can do things that affect the host. So you should not give container root access to untrusted users.”
<Leo`> In which ways can the container affect the host system?
Itkovian has joined #nixos
gilligan_ has quit [(Quit: This computer has gone to sleep)]
Itkovian has quit [(Client Quit)]
Itkovian has joined #nixos
<Biappi> savanni: many thanks for taking the time to write it out. i'm doing something similar, will take a look.
<savanni> Glad to help, @Biappi! I've got one for Haskell environments coming up next.
<savanni> Except it looks like the documentation in the manual may already be complete, so I'm only going to write it if I find something that's not covered in the manual.
<Biappi> "The process is non-obvious until it is done." heh, i can relate =D
<savanni> Heh. So many things in nix and nixos seem that way.
<savanni> Though I was really pleased to discover last night how easy it was for me to configure nginx to proxy to one of my app.s
glines has quit [(Ping timeout: 248 seconds)]
<savanni> Easier than writing an actual nginx configuration file.
glines has joined #nixos
<orbekk> Finding a nixos service that does exactly what I want is one of the best feelings ever.
Shou has quit [(Ping timeout: 252 seconds)]
<Biappi> not complaining. i think i'm using this in a corner case, yet it's pretty clear what i should do. sometimes discoverability is, yeah, frustrating like orbekk says. however any headscratch is definitely worth the pain, and from what i see the community *is* fixing those problems so, yay!
<savanni> I had a question about the nginx thing, though. I didn't find any instructions on nginx. What I found were instructions on getting gitlab to work, and that required an nginx config. Where would dedicated nginx confguration instructions belong?
Shados has quit [(Remote host closed the connection)]
Itkovian_ has joined #nixos
Itkovian has quit [(Ping timeout: 260 seconds)]
<greymalkin> Is there a way to use `emacsWithPackages` as part of config.nix? When I do, it's saying there is no derivation matching the name I gave it.
Shados has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #19810: linuxPackages.ati_drivers_x11: patch for kernel 4.7+ (master...ati-47) https://git.io/vPNey
takle has joined #nixos
<gchristensen> fpletz: sounds good to me :) take your time!
Shou has joined #nixos
<gchristensen> with nixops, can I tell `nixops ssh` and `nixops deploy`, for a particular call, to use the private IP address?
glines has quit [(Ping timeout: 258 seconds)]
amir has joined #nixos
takle has quit [(Ping timeout: 256 seconds)]
<gchristensen> since it changes based on where I am
redmq has quit [(Ping timeout: 250 seconds)]
rly has joined #nixos
dgn has joined #nixos
NEo4v8_ has joined #nixos
JagaJaga has joined #nixos
<greymalkin> emacsWithPackages -- doesn't return a derivation?
<greymalkin> (using nixpkgs-unstable)
dgn has quit [(Ping timeout: 250 seconds)]
pi3r has joined #nixos
NEo4v8_ has quit [(Ping timeout: 240 seconds)]
<kmicu> Hi greymalkin, how do you use it?
<greymalkin> kmicu: I've tried according to this: https://gist.github.com/sellout/d755a91b3e72d51eaf62 and others; some using emacsWithPackagesNg, some using overridden package sets... it's been a mess.
<greymalkin> But every time, the result is `selector 'emacsForGreymalkin' matches no derivations
<greymalkin> I've tried rewriting the name I'm giving it several times, just to make sure there was no typo and I just wasn't creating it.
<kmicu> What’s the command? Maybe you need to use ‘nixos.emacsForGreymalkin’.
magnetophon has joined #nixos
redmq has joined #nixos
<steveeJ> I'm currently wondering if I can use the hardware encryption feature of a capable SSD with nixos. I'm also wondering if I even need OS support here, or if the drive runtime decryption can be handled by the BIOS
zagy has quit [(Quit: Leaving.)]
<greymalkin> No love. `selector 'nixos.emacsForGreymalkin' matches no derivations`
zagy has joined #nixos
zagy has quit [(Client Quit)]
<greymalkin> I'm defining it in ~/.nixpkgs/config.nix; btw.
<greymalkin> This is a non-nixos installion (I've been calling it Arch/Nix)
<kmicu> greymalkin: if you could share relevant parts of you ~/.nixpkgs/config.nix it would be easier to help. Using ‘emacsWithPackages’ is as simple as ‘nix-shell --pure -p "emacsWithPackages (p: [p.ivy])"’.
<kmicu> (If ‘emacsForGreymalkin’ is not available, then it must by something in config.nix and nix-env/nix-shell invocation.)
jacob_ has joined #nixos
jacob_ is now known as Guest6781
<greymalkin> kmicu: P.S. running `nix-shell -p emacsForGreymalkin` is giving me a valid shell with the right packages, but nix-env -i still tells me there's no derivation matching.
<kmicu> -i wants name -iA wants attribute path, try ‘nix-env -iA nixpkgs.emacsForGreymalkin’.
<greymalkin> ugh... "Wide character in die at ..."
<greymalkin> Hmm.. collision.
<greymalkin> kmicu: That did it.
<greymalkin> Thanks!
<kmicu> You’re welcome.
<qknight> is there something in nixos which i can use to create /var/lib/foo without having a 'foo' service also?
takle has joined #nixos
<steveeJ> qknight: you could use systemd.tmpfiles.rules
<greymalkin> That would explain why setting emacs= self.emacsWithPackages... seemed to work, but didn't, too.
newhoggy_ has quit [(Ping timeout: 240 seconds)]
pi3r has quit [(Ping timeout: 260 seconds)]
<qknight> steveeJ: cool!
redmq has quit [(Ping timeout: 256 seconds)]
redmq has joined #nixos
Wizek__ has quit [(Ping timeout: 256 seconds)]
Wizek_ has quit [(Ping timeout: 258 seconds)]
seku has joined #nixos
<qknight> steveeJ: using this requires a reboot which is probably a problem
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to master: https://git.io/v1Lp5
<NixOS_GitHub> nixpkgs/master 076e3ae Graham Christensen: gitRepo: 1.22 -> 1.23
<gchristensen> <3 repo
<steveeJ> qknight: it would be enough to restart the tmpfile service, woulnd't it?
<steveeJ> qknight: I assume it's systemd-tmpfiles-setup.service
asymmetric has quit [(Ping timeout: 260 seconds)]
<steveeJ> and probably needs "switch" as nixos-rebuild argument
pi3r has joined #nixos
ugjka has joined #nixos
cfricke has joined #nixos
mkoenig has quit [(Read error: Connection reset by peer)]
mkoenig has joined #nixos
civodul has joined #nixos
zagy has joined #nixos
Itkovian_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
redmq has quit [(Ping timeout: 246 seconds)]
newhoggy2 has joined #nixos
zagy has quit [(Client Quit)]
earldouglas has left #nixos []
<NixOS_GitHub> [nixpkgs] rbvermaa pushed 1 new commit to release-16.09: https://git.io/v1te5
<NixOS_GitHub> nixpkgs/release-16.09 f27c78f Rob Vermaas: Add us-east-2 region to AMI creation script
newhoggy2 has quit [(Read error: No route to host)]
newhoggy2 has joined #nixos
<qknight> steveeJ: nixos-rebuild switch is what i call but systemd.tmpfiles.rules requires a reboot
Guest6781 has quit [(Quit: leaving)]
<qknight> steveeJ: the tmpfile service said this: systemctl restart systemd-tmpfiles-setup
<qknight> Failed to restart systemd-tmpfiles-setup.service: Operation refused, unit systemd-tmpfiles-setup.service may be requested by dependency only.
<steveeJ> qknight: this surpasses my systemd knowledge, sorry
<steveeJ> qknight: you could have a look at `systemctl cat systemd-tmpfiles-setup.service` and run the execute line
goibhniu has joined #nixos
<qknight> steveeJ: ok, i'll look into that
<qknight> thanks a lot!
mkoenig has quit [(Ping timeout: 260 seconds)]
mkoenig has joined #nixos
zagy has joined #nixos
mkoenig has quit [(Read error: Connection reset by peer)]
glines has joined #nixos
JonReed has joined #nixos
newhoggy2 has quit [(Remote host closed the connection)]
m0rphism has quit [(Quit: WeeChat 1.4)]
mkoenig has joined #nixos
zagy has quit [(Quit: Leaving.)]
mkoenig has quit [(Ping timeout: 260 seconds)]
z_ has joined #nixos
z_ is now known as Guest22621
z__ has joined #nixos
mkoenig has joined #nixos
mguentner has joined #nixos
rly has quit [(Ping timeout: 240 seconds)]
zsoc has quit [(Ping timeout: 265 seconds)]
Guest22621 has quit [(Ping timeout: 258 seconds)]
Itkovian has joined #nixos
redmq has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/v1tIc
<NixOS_GitHub> nixpkgs/staging 2587611 Vladimír Čunát: mesa: maintenance 13.0.1 -> 13.0.2
seanz has quit [(Quit: Leaving.)]
alx741_ has joined #nixos
alx741_ has quit [(Client Quit)]
alx741_ has joined #nixos
matthewbauer has joined #nixos
alx741 has quit [(Ping timeout: 256 seconds)]
alx741_ has quit [(Client Quit)]
AllanEspinosa has joined #nixos
RchrdB has quit [(Ping timeout: 248 seconds)]
<NixOS_GitHub> [nixpkgs] pSub pushed 1 new commit to release-16.09: https://git.io/v1tLR
<NixOS_GitHub> nixpkgs/release-16.09 b833b10 Pascal Wittmann: haskellPackages.ReadArgs: jailbreak to fix build...
z__ is now known as zsoc
zsoc has quit [(Changing host)]
zsoc has joined #nixos
alx741 has joined #nixos
newhoggy2 has joined #nixos
mkoenig has quit [(Ping timeout: 260 seconds)]
griff_ has joined #nixos
glines has quit [(Ping timeout: 248 seconds)]
<steveeJ> why is boot.loader.grub.device needed in EFI mode?
<steveeJ> s/EFI/UEFI
mkoenig has joined #nixos
pstn_ has quit [(Ping timeout: 250 seconds)]
<joepie91> steveeJ: I have it set to "nodev" fwiw
[0x4A6F]1 has quit [(Remote host closed the connection)]
cfricke has quit [(Quit: WeeChat 1.6)]
cpennington has quit [(Remote host closed the connection)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
asymmetric has joined #nixos
spacekitteh has quit [(Ping timeout: 260 seconds)]
spacekitteh has joined #nixos
NEo4v8_ has joined #nixos
takle has quit [(Remote host closed the connection)]
eacamero_ has joined #nixos
eacameron has quit [(Read error: Connection reset by peer)]
NEo4v8_ has quit [(Ping timeout: 258 seconds)]
xadi has quit [(Quit: Leaving.)]
takle has joined #nixos
<NixOS_GitHub> [nixpkgs] offlinehacker opened pull request #20777: e2fsprogs: 1.42.13 -> 1.43.3 (master...pkgs/e2fsprogs/update/1.43.3) https://git.io/v1tO2
eacameron has joined #nixos
eacamero_ has quit [(Read error: Connection reset by peer)]
takle has quit [(Ping timeout: 260 seconds)]
Shou has quit [(Ping timeout: 252 seconds)]
seku has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
yegods has quit [(Remote host closed the connection)]
seanz has joined #nixos
yegods has joined #nixos
griff_ has quit [(Quit: griff_)]
pstn_ has joined #nixos
newhoggy2 has quit [(Remote host closed the connection)]
<steveeJ> joepie91: thanks! so it's a mistake in the configuration
athan has joined #nixos
slack1256 has joined #nixos
<joepie91> steveeJ: if you have something else set there, then yes, probably - what configuration are you looking at?
redmq has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub> [nixpkgs] obadz closed pull request #20777: e2fsprogs: 1.42.13 -> 1.43.3 (master...pkgs/e2fsprogs/update/1.43.3) https://git.io/v1tO2
Shou has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to release-16.09: https://git.io/v1tnO
<NixOS_GitHub> nixpkgs/release-16.09 37cad0b obadz: e2fsprogs: 1.42.13 -> 1.43.3...
hiratara has quit [(Ping timeout: 258 seconds)]
fadenb has quit [(Quit: WeeChat 1.6)]
fadenb has joined #nixos
<slack1256> Can anybody upgrade pass X11 and a rtkit.service file without the correct permisions?
takle has joined #nixos
hiratara has joined #nixos
fadenb has quit [(Client Quit)]
fadenb has joined #nixos
ambro718 has quit [(Ping timeout: 260 seconds)]
herzmeister has joined #nixos
<gchristensen> has anyone considered periodically merging the stable release in to master?
newhoggy2 has joined #nixos
redmq has joined #nixos
slack1256 has quit [(Remote host closed the connection)]
<JonReed> Hm, let's say I have a dependency "python27Packages.readline" and I need to call a script with python that has this module. What do I need to "substituteInPlace"? Currently, I have "buildInputs = [python27Packages.readline python27]" and "substituteInPlace --replace "/usr/bin/env python" "${pythonPackages.python}/bin/python}". However, it can't fi
<JonReed> nd readline module when the package is called, the module is only present during the build.
glines has joined #nixos
redmq has quit [(Ping timeout: 244 seconds)]
<JonReed> Here is my current default.nix: http://lpaste.net/5822727862297296896
civodul has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
<JonReed> In haskell that would be ghcWithPackages. But for python there does not seem to be any way to supply both compiler and packages as one.
<prose[m]> Trying to install `jupyter`, but its `traitlets` dependency fails with `ImportError: No module named 'pytest'`. Any ideas?
<gchristensen> garbas: "...and start writing update scripts."
yegods has quit [(Remote host closed the connection)]
<gchristensen> garbas: update scripts exist for some packages, nothing stopping people from making more :)
<gchristensen> it is easier to talk
<garbas> gchristensen: but there is almost impossible to run them
<gchristensen> automatically?
<gchristensen> or?
<garbas> gchristensen: even manually
<gchristensen> why?
<garbas> you need to open them read what are the deps etc...
<gchristensen> they're not using #!nix-shell? that is an easy change to make
<garbas> if there would be a common "api" how to call them
<gchristensen> no nee
<gchristensen> no need*
<garbas> i think there is,
redmq has joined #nixos
<gchristensen> have a ./maintainers/scripts/run-available-auto-updaters and put all the existing auto-updaters in ther, in their correct usage form
<garbas> nix-shell update.nix --argstr pkg <atrr-name>
<garbas> and it will update any package
<gchristensen> problem solved until it grows unwieldy
<garbas> if this script generates something that only matching expression can "read" then it only makes sense to put it in the same place
<gchristensen> I'm coming at this from the perspective of what is the quickest way to make progress on the issue, since I do a lot of package updates and some of them are quite annoying.
<garbas> have you checked the code i linked to?
<gchristensen> yeah, I read your post
<gchristensen> it is very interesting and I like
<gchristensen> it is very interesting and I like it
<garbas> whole implementation is "3 lines"
ebzzry has joined #nixos
<garbas> it is just a convention how to find update scripts. it helps a lot.
<gchristensen> aye
<gchristensen> fair enough
glines has quit [(Ping timeout: 260 seconds)]
<garbas> if you want i can move my update scripts to nixpkgs
matthewbauer has quit [(Ping timeout: 240 seconds)]
lverns has joined #nixos
danharaj has quit [(Quit: Leaving.)]
<gchristensen> that would be fine with me
<gchristensen> my growing understanding is nixpkgs is very flexible to improvement as long as someone is doing it
glines has joined #nixos
redmq has quit [(Ping timeout: 248 seconds)]
hiratara has quit [(Quit: ZNC - http://znc.in)]
JagaJaga has quit [(Ping timeout: 250 seconds)]
<JonReed> To answer my own question for the sake of the log, you need to also wrapProgram --set PYTHONPATH "$PYTHONPATH", so that the python script sees the right modules while it executes.
hiratara has joined #nixos
Bolix has joined #nixos
<Bolix> Hello
redmq has joined #nixos
yegods has joined #nixos
<Bolix> I'm trying to play with the torbrowser.nix expression to figure out why in some websites <video> is not played.
<Bolix> In the meanwhile I'm trying to "nix-build .../torbrowser.nix" but I'm getting the stdenv "cannot autocall function..." error
<Bolix> I checked the wiki and faq and found a reference to --arg and --argstr
matthewbauer has joined #nixos
<Bolix> but I don't actually know which arguments I need to pass/define
<Bolix> Is there any easy way to know what needs to be defined and which options are available?
<NixOS_GitHub> [nixpkgs] NeQuissimus opened pull request #20778: atom: 1.12.5 -> 1.12.6 (master...atom_1_12_6) https://git.io/v1tR5
mkoenig has quit [(Ping timeout: 250 seconds)]
yegods has quit [(Read error: Connection reset by peer)]
yegods has joined #nixos
matthewbauer has quit [(Remote host closed the connection)]
matthewbauer has joined #nixos
mkoenig has joined #nixos
<savanni> @Bolix I'd need to look at your torbrowser.nix, but the "autocall function" error usually happens because the beginning of torbrowser.nix declares the file to be a function. At which point you can't actually call nix-build directly on it.
mkoenig has quit [(Read error: Connection reset by peer)]
<savanni> I have some other files that fall into the same category, and examples of how to call them.
<gchristensen> !m savanni
<[0__0]> You're doing good work, savanni!
<savanni> *blink*
<savanni> Thanks, gchristensen
<savanni> @Bolix Short answer, though, is that if it's packages that you need to have defined, you can get a hint by looking at the first couple lines of torbrowser.nix.
<savanni> And my example is in https://github.com/savannidgerinel/mead . Take a look at mead.nix, then look at default.nix, which calls it when I'm building the package.
mkoenig has joined #nixos
<Bolix> savanni: it currently is identical to the torbrowser included in nixpkgs but I added openh264 to the list of dependencies
matthewbauer has quit [(Ping timeout: 244 seconds)]
<Bolix> to see if it would help with the mp4 support
<kmicu> Ugh, tor browser is a binary, not a source build :/ It’s need a similar wrapper as with Firefox to make GStreamer/FFmpeg available and play with it all videos on http://www.quirksmode.org/html5/tests/video.html
<savanni> I can't speak at all to that part. I'm just going to take a look at the .nix file to see if what I know is relevant to the autocall problem.
<Bolix> kmicu: well... the thing is on my non-nixos system I can play video, only on nixos I can't. So something else is affecting the package. I don't know what.
<Bolix> and it seems not all video formats are affected. youtube plays fine.
<kmicu> Are you able to play it on NixOS with a regular Firefofx?
<savanni> Okay, it is an autocall problem. You probably need a nixos file that just defines all of the dependencies that are in the first three lines of torbrowser.nix. and I think they're all in nixpkgs or nixpkgs.stdenv.
pi3r has quit [(Quit: Nettalk6 - www.ntalk.de)]
<savanni> However... I don't know the syntax well enough to tell you how to import them all.
<Bolix> kmicu: seems like I was heading the right direction. firefox plays h264 torbrowser doesn't
<Bolix> in fact this is the only format from that page that doesn't play
<savanni> But, once you have them imported, you would then `callPackage torbrowser.nix {};`. Or maybe `import torbrowser.nix {};`.
<savanni> I'm... not actually sure.
<Bolix> savanni: thanks, I'll give that a try
<kmicu> Yes, and Firefox plays it, b/c it’s properly wrapped and can find GStreamer/FFmpeg.
<savanni> @Bolix shell.nix in the link that I shared will help. default.nix is actually a bit too Haskell specific.
<kmicu> ‘nix-build default.nix -A torbrowser’
<Bolix> kmicu: that gives "error: cannot auto-call a function that has an argument without a default value (‘stdenv’)"
<JonReed> have you tried: nix-repl "<nixpkgs>" and then in repl ":b ./default.nix".
<kmicu> Did you execute it in the top level of Nixpkgs?
Lowl3v3l has joined #nixos
<JonReed> then in repl ":b callPackage ./default.nix" *
<JonReed> then in repl ":b callPackage ./default.nix {}" **
<JonReed> :D
<Bolix> I'm not sure what that means, I have the default.nix file in a custom folder and I'm chdir'ed to that folder
<JonReed> nix-repl should work from any folder
athan has quit [(Remote host closed the connection)]
<Bolix> JonReed: don't have nix-repl
<kmicu> If <nixpkgs> does not point to his/her Nixpkgs repo it will not help.
<JonReed> Bolix: nix-env -iA nixos.nix-relp
<JonReed> Bolix: Repl is the easiest way to navigate around nix
<Bolix> I'm still new to this. Lots to learn
<Bolix> JonReed: "error: expression does not evaluation to a derivation, so I can't build "
Itkovian has joined #nixos
<Bolix> seems like there's a typo in that message too :)
<JonReed> Bolix: It allows to evaluate and see expressions. Also tab completion is very useful to explore there like "nixpkgs.<TAB>" will show all attributes
asymmetric has quit [(Ping timeout: 248 seconds)]
<JonReed> Bolix: which file you're trying to evaluate
<Bolix> JonReed: nevermind, used the wrong instruction
<Bolix> seems to be working now, waiting for it to finish
derjohn_mob has joined #nixos
<JonReed> Bolix: If you want to then add the result to the environment you can do "nix-env -iA /nix/store/blabla". The store path will be after "this derivation produced the following output:"
<Bolix> JonReed: thanks that worked, testing now
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #20772: yarp: 2.3.66.1 -> 2.3.68 (master...yarp) https://git.io/v1L4G
Itkovian has quit [(Client Quit)]
yegods has quit [(Remote host closed the connection)]
<Bolix> seems like simply adding openh264 as dependency doesn't quite work.
<Bolix> trying
<kmicu> Oh no! gchristensen was a victim of the nirvana fallacy :/ gchristensen, please, try to ignore false dichotomies! You are doing amazing job and improved Nix world a lot ʕノ•ᴥ•ʔノ ︵ ♥❤❣💞
<Bolix> kmicu: seems non trivial to add, there's a lot of stuff included in wrapper.nix that is not in https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/security/tor/torbrowser.nix
<Bolix> I don't yet know enough to tinker at this level
<ToxicFrog> "nirvana fallacy"?
matthewbauer has joined #nixos
<gchristensen> kmicu: I let them know the same hting :P
<NixOS_GitHub> [nixpkgs] grahamc pushed 3 new commits to master: https://git.io/v1t2Y
<NixOS_GitHub> nixpkgs/master 5b6d52b Lancelot SIX: nagios: 4.0.8 -> 4.2.3...
<NixOS_GitHub> nixpkgs/master c77011c Lancelot SIX: nagiosPluginsOfficial: 2.0.3 -> 2.1.4...
<NixOS_GitHub> nixpkgs/master 59695de Graham Christensen: Merge pull request #20763 from lsix/update_nagios...
<NixOS_GitHub> [nixpkgs] grahamc pushed 2 new commits to release-16.09: https://git.io/v1t2R
<NixOS_GitHub> nixpkgs/release-16.09 7fc197f Lancelot SIX: nagios: 4.0.8 -> 4.2.3...
<NixOS_GitHub> nixpkgs/release-16.09 a9523ed Lancelot SIX: nagiosPluginsOfficial: 2.0.3 -> 2.1.4...
<gchristensen> kmicu: I simultaneously tried to encourage (though I'm not sure it came off that way) garbas to just move forward with his project in nixpkgs
NEo4v8_ has joined #nixos
matthewbauer has quit [(Ping timeout: 246 seconds)]
<NixOS_GitHub> [nixpkgs] TikhonJelvis opened pull request #20779: hadoop-2.2.0: Added a check to not run patchelf on MacOS. (master...hadoop-darwin) https://git.io/v1t2P
<gchristensen> ToxicFrog: "The nirvana fallacy is a name given to the informal fallacy of comparing actual things with unrealistic, idealized alternatives.[1] It can also refer to the tendency to assume that there is a perfect solution to a particular problem. A closely related concept is the perfect solution fallacy.By creating a false dichotomy that presents one option which is obviously advantageous—while at the same
<gchristensen> time being completely implausible—a person using the nirvana fallacy can attack any opposing idea because it is imperfect. Under this fallacy, the choice is not between real world solutions; it is, rather, a choice between one realistic achievable possibility and another unrealistic solution that could in some way be "better"."
<ToxicFrog> Aah. A type of "making the perfect the enemy of the good".
<gchristensen> yeah
NEo4v8_ has quit [(Ping timeout: 240 seconds)]
<shlevy> bgamari: https://gist.github.com/shlevy/2f6107e381c276cc077d92ef126f0150 <- just used these to set up an env for hacking on ghc
yegods has joined #nixos
<shlevy> used with 'enter-env env.nix'
<shlevy> bgamari: Lots of room for refinement :)
<gchristensen> gotta run
JonReed has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
eacameron has quit [(Read error: Connection reset by peer)]
eacameron has joined #nixos
pstn_ has quit [(Remote host closed the connection)]
Bolix has quit [(Ping timeout: 260 seconds)]
zagy has joined #nixos
zagy has quit [(Client Quit)]
<garbas> gchristensen: you sure succeeded :P already started to work on a pr to get this update.nix stuff into nixpkgs
m0rphism has joined #nixos
pstn_ has joined #nixos
seppellll has quit [(Ping timeout: 246 seconds)]
Spritzgebaeck has quit [(Ping timeout: 250 seconds)]
mkoenig has quit [(Read error: Connection reset by peer)]
pstn_ has quit [(Remote host closed the connection)]
herzmeister has quit [(Quit: Leaving)]
herzmeister has joined #nixos
mkoenig has joined #nixos
justanotheruser has joined #nixos
kampfschlaefer has quit [(Ping timeout: 258 seconds)]
Spritzgebaeck has joined #nixos